Message395775
After this contribution, when using module at the root dir (maybe bad manners), the followings are expected behaviors? (1) relative drive in sys.path -> bytecode is not put in __pycache__ folder. >>> import sys >>> sys.path.append('F:') # flash device, etc... >>> import foo >>> foo.__file__ 'F:foo.py' >>> foo.__cached__ 'F:foo.cpython-311.pyc' (2) absolute drive in sys.path -> __pycache__ is under current dir, not absolute. >>> import sys >>> sys.path.append('F:\\') >>> import foo >>> foo.__file__ 'F:\\foo.py' >>> foo.__cached__ 'F:__pycache__\\foo.cpython-311.pyc' | |
| Date | User | Action | Args | | 2021-06-14 06:28:27 | neonene | set | recipients: + neonene, brett.cannon, gregory.p.smith, paul.moore, orsenthil, tim.golden, zach.ware, eryksun, steve.dower, smunday | | 2021-06-14 06:28:27 | neonene | set | messageid: <1623652107.78.0.841813952324.issue43105@roundup.psfhosted.org> | | 2021-06-14 06:28:27 | neonene | link | issue43105 messages | | 2021-06-14 06:28:27 | neonene | create | | |