diff options
| author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-18 14:11:34 -0400 |
|---|---|---|
| committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-03-18 14:11:34 -0400 |
| commit | e09a46097f2fe254191f5fa3d8734836ff5519a6 (patch) | |
| tree | 22f9da12cf12f75d635da0b8a989678af31a58bb /cmd2.py | |
| parent | d41fd7cb3c1bd80c61171ce5484547586c5789ba (diff) | |
| download | cmd2-git-e09a46097f2fe254191f5fa3d8734836ff5519a6.tar.gz | |
~ only needs to be expanded if search text was entered
Diffstat (limited to 'cmd2.py')
| -rwxr-xr-x | cmd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |
