You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
Right now, our import system is "global", shared from every module. However, when a file is run as a script, say python foo/bar.py, then its sys.path is prepended with the directory in which the script lives, and its effective import root is there.
We can't handle this case, and require extraPaths or PYTHONPATH in order to set an extra import root for this scenario.
In order to better handle this case, we could have some setup to have import roots per-module, but doing so would require #443/#846/#1360/etc to be fixed in order to decouple importable names from the identity of a module.
Right now, our import system is "global", shared from every module. However, when a file is run as a script, say
python foo/bar.py
, then itssys.path
is prepended with the directory in which the script lives, and its effective import root is there.We can't handle this case, and require extraPaths or PYTHONPATH in order to set an extra import root for this scenario.
In order to better handle this case, we could have some setup to have import roots per-module, but doing so would require #443/#846/#1360/etc to be fixed in order to decouple importable names from the identity of a module.
Going through some issues:
python nestedFolder/a.py
and it works fine.The text was updated successfully, but these errors were encountered: