Skip to content

Commit

Permalink
Merge pull request ReFirmLabs#409 from lager1/master
Browse files Browse the repository at this point in the history
fix getting user's home dir
  • Loading branch information
devttys0 authored Jun 14, 2019
2 parents a0c5315 + b1b14c2 commit 903ae50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/binwalk/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ def _get_user_dir(self):
user_dir = os.getenv(envname)
if user_dir is not None:
return user_dir
if os.path.expanduser("~") is Not None:
return os.path.expanduser("~")
except KeyboardInterrupt as e:
raise e
except Exception:
Expand Down

0 comments on commit 903ae50

Please sign in to comment.