iterative / shtab

↔️ Automagic shell tab completion for Python CLI applications
https://docs.iterative.ai/shtab
Other
375 stars 34 forks source link

add curdir to sys.path #12

Closed casperdcl closed 4 years ago

casperdcl commented 4 years ago

Consider not needing to alter PYTHONPATH to expose scripts/packages in the current working directory

$ ls
script.py
$ shtab -u script.parser > script_completion.sh
...
ModuleNotFoundError: No module named 'script'
$ PYTHONPATH=. shtab -u script.parser > script_completion.sh  # works