classification
Title: os.defpath includes unix /bin on windows
Type: Stage: commit review
Components: Library (Lib), Windows Versions: Python 3.2, Python 3.1, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: brian.curtin, eric.araujo, gvanrossum, techtonik, terry.reedy, tim.golden
Priority: normal Keywords: easy

Created on 2009-04-07 15:03 by techtonik, last changed 2010-11-18 00:42 by eric.araujo.

Files
File name Uploaded Description Edit
issue5717.py25.patch techtonik, 2009-04-08 10:18
issue5717.py26.patch techtonik, 2009-04-08 10:49 review
Messages (5)
msg85708 - (view) Author: anatoly techtonik (techtonik) Date: 2009-04-07 15:03
>>> import os
>>> os.defpath
'.;C:\\bin'
>>> os.path.defpath
'.;C:\\bin'
>>>

These are invalid paths on windows.
msg85728 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2009-04-07 16:22
Can you suggest a fix?
msg85766 - (view) Author: anatoly techtonik (techtonik) Date: 2009-04-08 10:49
On the second try it was much easier.

For py3k I saw a post about removing defpath and some of its friends, 
with which I partially agree.
http://groups.google.com/group/comp.lang.python/browse_thread/thread/e8072370bfbef398/a0215b5820f76c0e
msg112663 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2010-08-03 20:10
3.1.2 still has defpath and gives same erroneous result
Patch is a trivial revision of one line in os.py.
msg121396 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-11-18 00:42
Adding our esteemed Windows experts for review.
History
Date User Action Args
2010-11-18 00:42:02eric.araujosetnosy: + tim.golden, brian.curtin, eric.araujo
messages: + msg121396
components: + Windows
2010-08-03 20:10:56terry.reedysetversions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.5
nosy: + terry.reedy

messages: + msg112663

keywords: + easy, - patch
stage: commit review
2009-04-08 10:49:46techtoniksetfiles: + issue5717.py26.patch

messages: + msg85766
2009-04-08 10:18:05techtoniksetfiles: + issue5717.py25.patch
keywords: + patch
2009-04-07 16:22:38gvanrossumsetnosy: + gvanrossum
messages: + msg85728
2009-04-07 15:03:49techtonikcreate