Skip to content

Commit

Permalink
Merge pull request #62 from rebeccaito/61-cross-platform-home-dir
Browse files Browse the repository at this point in the history
61-Use a cross-platform reference to HOME directory in config.py
  • Loading branch information
jamienoss authored Feb 21, 2023
2 parents 603e84b + 6c57a7a commit d74de3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion txt2hpo/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@


# create config directory if it doesn't exist
config_directory = os.path.join(os.environ.get('HOME'), f'.{__project__}')
config_directory = os.path.join(os.path.expanduser('~'), f'.{__project__}')

try:
os.makedirs(config_directory)
Expand Down

0 comments on commit d74de3d

Please sign in to comment.