
Hi,
just saw that os.defpath for Windows is defined as Lib/ntpath.py:30:defpath = '.;C:\\bin'
Most Windows machines I saw has no c:\bin directory.
Any reason why it was defined this way ? Thanks, Yinon

I can't see any logical reason for that. There should not be such a hack to avoid "magical bugs" when PATH is empty.
On Sun, Dec 21, 2008 at 11:19 AM, Yinon Ehrlich yinon.me@gmail.com wrote:
Hi,
just saw that os.defpath for Windows is defined as Lib/ntpath.py:30:defpath = '.;C:\\bin'
Most Windows machines I saw has no c:\bin directory.
Any reason why it was defined this way ? Thanks, Yinon _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/techtonik%40gmail.com

Hi,
I've added the issue to tracker. http://bugs.python.org/issue5717
--anatoly t.
On Sun, Dec 21, 2008 at 12:19 PM, Yinon Ehrlich yinon.me@gmail.com wrote:
Hi,
just saw that os.defpath for Windows is defined as Lib/ntpath.py:30:defpath = '.;C:\\bin'
Most Windows machines I saw has no c:\bin directory.
Any reason why it was defined this way ? Thanks, Yinon _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/techtonik%40gmail.com
participants (2)
-
anatoly techtonik
-
Yinon Ehrlich