Skip to content

Commit

Permalink
Merge pull request #1 from mshafer-NI/patch-1
Browse files Browse the repository at this point in the history
make getting user home OS agnostic
  • Loading branch information
mshafer-NI authored Mar 26, 2019
2 parents f73ed3a + f11e399 commit d5b4068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keepasshttp/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, key, id_):
@classmethod
def start(cls, appname):
"""Start a new communication session."""
config_dir = os.path.join(os.getenv('HOME'), '.config/', appname)
config_dir = os.path.join(os.path.expanduser("~"), '.config/', appname)
if not os.path.isdir(config_dir):
os.makedirs(config_dir, 0o700)
config_path = os.path.join(config_dir, 'keepasshttp.json')
Expand Down

0 comments on commit d5b4068

Please sign in to comment.