Skip to content

Commit 25a8ced

Browse files
fix: use correct data directory on docker installs (#295)
1 parent acfe257 commit 25a8ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def get_avatar_bytes():
3838

3939
def get_data_dir():
4040
# parent directory name of this file, not full path
41-
parent_dir = os.path.dirname(os.path.abspath(__file__)).split(os.sep)[-1]
41+
parent_dir = os.path.dirname(os.path.abspath(__file__)).split(os.sep)[-2]
4242
if parent_dir == 'app': # running in Docker container
4343
d = '/data'
4444
else: # running locally

0 commit comments

Comments
 (0)