summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)