Last active
February 17, 2017 18:25
-
-
Save amynbe/3c84e74b31f757bb5015ad672d411527 to your computer and use it in GitHub Desktop.
Cygwin usr bin python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $# -eq 0 ] | |
then | |
py | |
else | |
py `cygpath -m -- $1` "${@:2}" ; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Put this file in /bin to allow shebang python scripts to run with the Windows distribution (as opposed to cygwin distribution) of python.
It addresses the fact that the Windows python distribution doesn't understand unix-style paths.