Nick Coghlan <ncogh...@gmail.com> added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10318>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to