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 f9b0795 + 545b03c commit 82cf362Copy full SHA for 82cf362
shtab/main.py
@@ -2,6 +2,8 @@
2
3
import argparse
4
import logging
5
+import os
6
+import sys
7
from importlib import import_module
8
9
from . import __version__, complete
@@ -43,6 +45,8 @@ def main(argv=None):
43
45
log.debug(args)
44
46
47
module, other_parser = args.parser.rsplit(".", 1)
48
+ if sys.path and sys.path[0]: # not blank so not searching curdir
49
+ sys.path.insert(1, os.curdir)
50
try:
51
module = import_module(module)
52
except ImportError as err:
0 commit comments