This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients allan, belopolsky, benjamin.peterson, docs@python, eric.araujo, eric.smith, ezio.melotti, georg.brandl, jcea, ncoghlan, ned.deily, orsenthil, python-dev, r.david.murray
Date 2011-11-23.22:26:06
SpamBayes Score 1.5420939e-07
Marked as misclassified No
Message-id <1322087167.85.0.126098373052.issue10318@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-11-23 22:26:07ncoghlansetrecipients: + 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:07ncoghlansetmessageid: <1322087167.85.0.126098373052.issue10318@psf.upfronthosting.co.za>
2011-11-23 22:26:07ncoghlanlinkissue10318 messages
2011-11-23 22:26:06ncoghlancreate