We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63e23af commit 0c2ba9aCopy full SHA for 0c2ba9a
public/setup_hook.py
@@ -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
0 commit comments