diff --git a/app/paths.py b/app/paths.py index 81646f6..4704686 100644 --- a/app/paths.py +++ b/app/paths.py @@ -3,7 +3,7 @@ IS_IN_DOCKER = os.geteuid() == 0 -STORAGE_PATH = Path('/opt/storage/') if IS_IN_DOCKER else Path(f'/home/{os.getlogin()}/.gerev/storage/') +STORAGE_PATH = Path('/opt/storage/') if IS_IN_DOCKER else Path(f'{Path.home()}/.gerev/storage/') if not STORAGE_PATH.exists(): STORAGE_PATH.mkdir(parents=True)