Also modify the test a bit to make sure that it passes properly if there are
folders present.
This commit is contained in:
Dave Halter committed 2020-03-13 23:40:48 +01:00
commit 5cd212c51c
2 files changed
+16 -1

No files matched your search

+2
View File
@@ -17,6 +17,8 @@ def complete_file_name(inference_state, module_context, start_leaf, string,
like_name_length = len(os.path.basename(string))
addition = _get_string_additions(module_context, start_leaf)
if string.startswith('~'):
string = os.path.expanduser(string)
if addition is None:
return
string = addition + string