Message148210
Hmm, interesting mailing list post - I hadn't thought about how the auto-initialisation of sys.path[0] aligns with the Windows vs Unix difference in PATH handling (i.e. whether or not the current directory is considered to be on PATH), with Python coming down in favour of the usually-more-convenient-but-less-secure Windows approach.
We have -S to disable all site processing, -s to disable user site packages and -E to ignore PYTHONPATH and PYTHONHOME - perhaps there should be another flag to skip the auto-initialisation of sys.path[0]. I may include something along those lines in PEP 395. |
|
Date |
User |
Action |
Args |
2011-11-23 22:26:07 | ncoghlan | set | recipients:
+ ncoghlan, georg.brandl, jcea, belopolsky, orsenthil, eric.smith, benjamin.peterson, ned.deily, ezio.melotti, eric.araujo, r.david.murray, docs@python, allan, python-dev |
2011-11-23 22:26:07 | ncoghlan | set | messageid: <1322087167.85.0.126098373052.issue10318@psf.upfronthosting.co.za> |
2011-11-23 22:26:07 | ncoghlan | link | issue10318 messages |
2011-11-23 22:26:06 | ncoghlan | create | |
|