Message304707
Yeah, that one I definitely think could be improved. Could you file a separate RFE suggesting that we update sys.path[0] based on __main__.__spec__.origin after we look up __main__.__spec__?
That way it will only stay as the current directory if the module being executed is in a subdirectory of the current directory, and will otherwise be updated appropriately for wherever we actually found the main module. |
|
| Date |
User |
Action |
Args |
| 2017-10-21 15:12:37 | ncoghlan | set | recipients:
+ ncoghlan, brett.cannon, vinay.sajip, jaraco, eric.araujo, Arfrever, eric.snow, serhiy.storchaka |
| 2017-10-21 15:12:36 | ncoghlan | set | messageid: <1508598756.98.0.213398074469.issue16737@psf.upfronthosting.co.za> |
| 2017-10-21 15:12:36 | ncoghlan | link | issue16737 messages |
| 2017-10-21 15:12:36 | ncoghlan | create | |
|