Skip to content

Commit a3be467

Browse files
committed
makes data directory
1 parent fd50c72 commit a3be467

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/opengeodeweb_viewer/config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ def test_config() -> None:
5555
os.environ["DATA_FOLDER_PATH"] = os.path.abspath(data_path)
5656

5757
data_path = os.environ["DATA_FOLDER_PATH"]
58+
if not os.path.exists(data_path):
59+
os.makedirs(data_path, exist_ok=True)
60+
5861
db_file = os.path.join(data_path, "project.db")
5962
if not os.path.exists(db_file):
6063
open(db_file, "a").close()

0 commit comments

Comments
 (0)