Message351070
Good point regarding the heuristic: it would need to take the requested module name into account to be correct.
* check if the requested module was found relative to the current directory (can be worked out from __main__.__spec__ and the current working directory)
* if it was, make sys.path[0] the absolute path of the current directory
* otherwise, remove sys.path[0] entirely |
|
Date |
User |
Action |
Args |
2019-09-03 07:47:43 | ncoghlan | set | recipients:
+ ncoghlan, jaraco |
2019-09-03 07:47:43 | ncoghlan | set | messageid: <1567496863.38.0.929244531893.issue31874@roundup.psfhosted.org> |
2019-09-03 07:47:43 | ncoghlan | link | issue31874 messages |
2019-09-03 07:47:43 | ncoghlan | create | |
|