Skip to content

Commit e421e66

Browse files
committed
fix(DumpDir): properly parse ~ argument
1 parent c53c825 commit e421e66

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/cli/ui.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,9 @@ def change_dump_dir(self):
110110
dump_dir = input("Please enter the directory (or 'Q' to exit.): ").strip().replace(
111111
'"', '').replace("'", "")
112112

113+
if "~" in dump_dir:
114+
dump_dir = dump_dir.replace("~", os.path.expanduser("~"))
115+
113116
if not len(dump_dir):
114117
clear()
115118
title()

0 commit comments

Comments
 (0)