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

2015-06-17 Thread R. David Murray
R. David Murray added the comment: This is working in pretty much the only way it can work. Python is correctly retrieving the string from the environment (it includes the quotation marks). It is correctly passing that string to os.path: os.path takes the exact string that represents the fil

[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 ___ _

[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>cd .. R:\>set dir1="R:\j