[issue24461] os.environ.get treats Environt variant with double quotation marks wrong

2015-06-17 Thread
New submission from 进陆: On windows, if a Directory/Filename has SPACE, double quotation mark should be used. For example, "R:\just a test\hello.bat" has only one line "@echo hello world", so in the dos prompt [quote] R:\just a test>hello.bat hello world R:\just a test

[issue24461] os.environ.get treats Environt variant with double quotation marks wrong

2015-06-17 Thread
进陆 added the comment: the patched method should be [quote] if os.name=='nt' and res: res=res.replace('"', '') [/quote] -- ___ Python tracker