$ python -c "import sys;print(sys.argv)" "C:/A"Why would you do that! The solution is to use backslashes:
['-c', 'C:/A']
$ python -c "import sys;print(sys.argv)" "C:/A C:/A"
['-c', 'C;C:\\msys\\1.0\\A C;a:\\']
$ python -c "import sys;print(sys.argv)" "C:\A C:\A"But again, wtf!!
['-c', 'C:\\A C:\\A']
No comments:
Post a Comment