Fix filename completion if path starts with ~

This commit is contained in:
Bastian Kleineidam 2011-03-10 10:03:41 +01:00
parent 8e0fe33edb
commit 6672f39c90
2 changed files with 3 additions and 1 deletions

View file

@ -3,6 +3,7 @@
Fixes:
- checking: Fix typo calling get_temp_file() function.
Closes: SF bug #3196917
- cmdline: Fix filename completion if path starts with ~
Changes:
- checking: Use HTTP GET requests to work around buggy IIS servers

View file

@ -517,7 +517,8 @@ if has_optcomplete:
else:
listdir = cwd
return [os.path.join(startdir, f)
for f in os.listdir(listdir) if f.startswith(lhs)]
for f in os.listdir(os.path.expanduser(listdir))
if f.startswith(lhs)]
optcomplete.autocomplete(optparser, arg_completer=FileCompleter)