[docs] Windows executable script bug

Henry Rodrick moshisushi at gmail.com
Fri Nov 5 18:28:01 CET 2010


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


More information about the docs mailing list