summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/lida/rw_data.patch
blob: f33e50633296d6b4fd4c0d4240b1d4532f21a544 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/lida/web/app.py b/lida/web/app.py
index 32046a3..599ae07 100644
--- a/lida/web/app.py
+++ b/lida/web/app.py
@@ -34,8 +34,9 @@ app.mount("/api", api)
 
 root_file_path = os.path.dirname(os.path.abspath(__file__))
 static_folder_root = os.path.join(root_file_path, "ui")
-files_static_root = os.path.join(root_file_path, "files/")
-data_folder = os.path.join(root_file_path, "files/data")
+home_dir = os.path.expanduser("~")
+files_static_root = os.path.join(home_dir, ".lida/files")
+data_folder = os.path.join(files_static_root, "data")
 os.makedirs(data_folder, exist_ok=True)
 os.makedirs(files_static_root, exist_ok=True)
 os.makedirs(static_folder_root, exist_ok=True)