Skip to content

Commit

Permalink
fix(DumpDir): properly parse ~ argument
Browse files Browse the repository at this point in the history
  • Loading branch information
kernel-dev committed May 2, 2022
1 parent c53c825 commit e421e66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cli/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ def change_dump_dir(self):
dump_dir = input("Please enter the directory (or 'Q' to exit.): ").strip().replace(
'"', '').replace("'", "")

if "~" in dump_dir:
dump_dir = dump_dir.replace("~", os.path.expanduser("~"))

if not len(dump_dir):
clear()
title()
Expand Down

0 comments on commit e421e66

Please sign in to comment.