[issue4015] [patch] make installed scripts executable on windows
Amaury Forgeot d'Arc
report at bugs.python.org
Tue Mar 17 22:22:18 CET 2009
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
I sometimes use this trick on Windows: name the script with a .bat
extension, and put these lines on top of the file:
@echo off
rem = """
rem run python on this bat file.
rem The -x causes python to skip the first line of the file:
c:\path\to\python -x %~dpnx0 %*
goto :EOF
rem """
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4015>
_______________________________________
More information about the Python-bugs-list
mailing list