[issue4402] os.getenv('PATH') return different result between 2.5 and 3.0rc3

赵现刚 report at bugs.python.org
Tue Nov 25 06:06:57 CET 2008


赵现刚 <zhaolu8 at hotmail.com> added the comment:

I have installed both py2.5 and py3.0rc3. I got the result as follows:

1.py3.0  : from the windows start menu-->run, type in "python" ,and py3.0 will startup(which I don't understand why),then execute 

import ossys_path=os.getenv('PATH')print(sys_path)
will get the result.

2.py2.5: First start the windows programme "cmd", and then type in "python", and py2.5 will startup,then  also execute the code 
import ossys_path=os.getenv('PATH')print(sys_path)
will get the result.

Thanks!> Subject: [issue4402] os.getenv('PATH') return different result between 2.5 and 3.0rc3> To: zhaolu8 at hotmail.com> From: report at bugs.python.org> Date: Mon, 24 Nov 2008 09:00:33 +0000> > > Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:> > I cannot reproduce this. Python does not modify the environment variables.> How did you exactly start the python interpreters, 2.5 and 3.0?> > ----------> nosy: +amaury.forgeotdarc> > _______________________________________> Python tracker <report at bugs.python.org>> <http://bugs.python.org/issue4402>> _______________________________________
_________________________________________________________________
MSN资讯快递,帮助你第一时间了解最新资讯!
http://im.live.cn/newsexpress

Added file: http://bugs.python.org/file12125/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4402>
_______________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
URL: <http://mail.python.org/pipermail/python-bugs-list/attachments/20081125/9782d87e/attachment.txt>


More information about the Python-bugs-list mailing list