We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5d7cffb + 4085cdc commit 488110fCopy full SHA for 488110f
1 file changed
xontrib/argcomplete.py
@@ -102,7 +102,7 @@ def python_argcomplete(ctx: CommandContext):
102
103
if not args:
104
# handle case where script is executed like `./script.py`, `./script.xsh`
105
- if os.path.exists(cmd) and _python_argcomplete_scan_head(cmd):
+ if os.path.isfile(cmd) and _python_argcomplete_scan_head(cmd):
106
args = [cmd]
107
108
if args:
0 commit comments