1
0
Fork 0
mirror of https://codeberg.org/Mo8it/AdvLabDB.git synced 2024-12-04 22:40:30 +00:00

Use dev/data as data dir during development

This commit is contained in:
Mo 2023-11-03 21:57:47 +01:00
parent 7029e6915a
commit 190c8bdba4

View file

@ -6,7 +6,7 @@ from pathlib import Path
def get_data_dir() -> Path:
data_dir_env_variable = "ADVLABDB_DATA_DIR"
data_dir = Path(environ.get(data_dir_env_variable, "dev_data")).resolve()
data_dir = Path(environ.get(data_dir_env_variable, "dev/data")).resolve()
if not data_dir.is_dir():
sys.exit(