Skip to content

Commit

Permalink
fix: use correct data directory on docker installs (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored May 21, 2024
1 parent acfe257 commit 25a8ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 25a8ced

Please sign in to comment.