mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-19 05:41:00 +00:00
Fix filename completion if path starts with ~
This commit is contained in:
parent
8e0fe33edb
commit
6672f39c90
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue