Skip to content

Commit 0c2ba9a

Browse files
committed
Setup Hook
1 parent 63e23af commit 0c2ba9a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

public/setup_hook.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from typing import Any
2+
from os.path import exists
3+
from json import dumps
4+
5+
def run_hook(_: str, datapath: str) -> None:
6+
laucher_json_path = f"{datapath}/data/launcher.json"
7+
launcher_json: dict[str, Any] = {
8+
"projects": [],
9+
}
10+
11+
if not exists(laucher_json_path):
12+
with open(laucher_json_path, "w") as file:
13+
file.write(dumps(launcher_json, indent=2))
14+

public/vite.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)