From 25a8ced2117eb0a91228e26797573619bf77280d Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Tue, 21 May 2024 14:39:37 -0400 Subject: [PATCH] fix: use correct data directory on docker installs (#295) --- src/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.py b/src/common.py index 9780f3d..8770e99 100644 --- a/src/common.py +++ b/src/common.py @@ -38,7 +38,7 @@ def get_avatar_bytes(): def get_data_dir(): # parent directory name of this file, not full path - parent_dir = os.path.dirname(os.path.abspath(__file__)).split(os.sep)[-1] + parent_dir = os.path.dirname(os.path.abspath(__file__)).split(os.sep)[-2] if parent_dir == 'app': # running in Docker container d = '/data' else: # running locally