Skip to content

Commit f17f6bf

Browse files
committed
Path Fixes
1 parent 27d2147 commit f17f6bf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

setup_hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def write(filepath: str, content: str) -> bool:
77
return True
88

99
def run_hook(release_path: str, data_path: str) -> None:
10-
mkdir(f"{release_path}/config")
10+
mkdir(f"{release_path}/configs")
1111
configs: dict[str, str] = {
1212
"datapath": data_path,
1313
"service_url": "https://raw.githubusercontent.com/GraphScript-Labs",

src/utils/appdata.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
from sys import argv
77

88
cached_data: dict[str, str] = {}
9-
APP_DIR: str = dirname(realpath(argv[0]))
9+
APP_DIR: str = dirname(realpath(argv[0])).rstrip('/src')
1010

1111
def read(filepath: str) -> str | None:
1212
filepath = join(APP_DIR, filepath)
13+
1314
if not exists(filepath):
1415
return None
1516

0 commit comments

Comments
 (0)