search script's parent directory for __pypackages__ when running script in different directory
cs01 opened this issue · 1 comments
cs01 commented
PEP 582's text reads
Python will use the pypackages from the base directory of the script when present.
However pythonloc
only looks for __pypackages__
in the current directory.
pythonloc
should be modified to identify the absolute path of the script that is running (if any) and add <script's parent dir>/__pypackages__/...
to PYTHONPATH rather than <current local dir>/__pypackages__
.
If there is no script being run (i.e. the repl is being used) or if the script is in the current directory, pythonloc
should continue its current behavior.
cs01 commented
this has been added in 0.1.1.0