at master 686 B view raw
1diff --git a/lida/web/app.py b/lida/web/app.py 2index 32046a3..599ae07 100644 3--- a/lida/web/app.py 4+++ b/lida/web/app.py 5@@ -34,8 +34,9 @@ app.mount("/api", api) 6 7 root_file_path = os.path.dirname(os.path.abspath(__file__)) 8 static_folder_root = os.path.join(root_file_path, "ui") 9-files_static_root = os.path.join(root_file_path, "files/") 10-data_folder = os.path.join(root_file_path, "files/data") 11+home_dir = os.path.expanduser("~") 12+files_static_root = os.path.join(home_dir, ".lida/files") 13+data_folder = os.path.join(files_static_root, "data") 14 os.makedirs(data_folder, exist_ok=True) 15 os.makedirs(files_static_root, exist_ok=True) 16 os.makedirs(static_folder_root, exist_ok=True)