summaryrefslogtreecommitdiff
path: root/cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-18 14:11:34 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-03-18 14:11:34 -0400
commite09a46097f2fe254191f5fa3d8734836ff5519a6 (patch)
tree22f9da12cf12f75d635da0b8a989678af31a58bb /cmd2.py
parentd41fd7cb3c1bd80c61171ce5484547586c5789ba (diff)
downloadcmd2-git-e09a46097f2fe254191f5fa3d8734836ff5519a6.tar.gz
~ only needs to be expanded if search text was entered
Diffstat (limited to 'cmd2.py')
-rwxr-xr-xcmd2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2.py b/cmd2.py
index 1c5a867e..9b13ff92 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -350,8 +350,8 @@ def path_complete(text, line, begidx, endidx, dir_exe_only=False, dir_only=False
# Build the search string
search_str = os.path.join(dirname, text + '*')
- # Expand "~" to the real user directory
- search_str = os.path.expanduser(search_str)
+ # Expand "~" to the real user directory
+ search_str = os.path.expanduser(search_str)
# Find all matching path completions
path_completions = glob.glob(search_str)