Windows executable script bug

Nov. 5, 2010
5:28 p.m.
Hello! I found a little issue with making python scripts executable in Windows (as described here: http://docs.python.org/faq/windows#how-do-i-make-python-scripts-executable): @setlocal enableextensions & python -x %~f0 %* & goto :EOF This won't work well if the script resides in a directory named something with spaces. The fix is to add quotes around the script path: @setlocal enableextensions & python -x "%~f0" %* & goto :EOF Regards, Henry Rodrick
5244
Age (days ago)
5244
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henry Rodrick