[New-bugs-announce] [issue4402] os.getenv('PATH') return different result between 2.5 and 3.0rc3
赵现刚
report at bugs.python.org
Mon Nov 24 03:21:01 CET 2008
New submission from 赵现刚 <zhaolu8 at hotmail.com>:
I am using windows xp(sp3),chinese simplified.I found that in os
module,os.getenv('PATH') return different result between python 2.5 and
3.0rc3.py2.5's result is the same as the path command's result.
path command's result:
PATH=C:\Tcl\bin;C:\oracle\product\10.2.0\db_1
\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
Files\Borland\Delphi7\Bin;C:\Program Files\Borland\Delphi7
\Projects\Bpl\;C:\Program Files\Java\jdk1.7.0\bin;C:\Python25
\;C:\Python30\;...
py2.5's result:
C:\Tcl\bin;C:\oracle\product\10.2.0\db_1
\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
Files\Borland\Delphi7\Bin;C:\Program Files\Borland\Delphi7
\Projects\Bpl\;C:\Program Files\Java\jdk1.7.0\bin;C:\Python25
\;C:\Python30\;...
py3.0rc3's result:
C:\Python25\;C:\Tcl\bin;C:\oracle\product\10.2.0\db_1
\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program
Files\Borland\Delphi7\Bin;C:\Program Files\Borland\Delphi7
\Projects\Bpl\;C:\Program Files\Java\jdk1.7.0\bin;C:\Python25
\;C:\Python30\;...
you can see that python3.0 gets extra element "C:\Python25\",which is
first. Is it a bug or something? thanks.
----------
components: Library (Lib)
files: path_result.txt
messages: 76294
nosy: clive
severity: normal
status: open
title: os.getenv('PATH') return different result between 2.5 and 3.0rc3
versions: Python 3.0
Added file: http://bugs.python.org/file12116/path_result.txt
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4402>
_______________________________________
More information about the New-bugs-announce
mailing list