Skip to content

Instantly share code, notes, and snippets.

@amynbe
Last active February 17, 2017 18:25
Show Gist options
  • Save amynbe/3c84e74b31f757bb5015ad672d411527 to your computer and use it in GitHub Desktop.
Save amynbe/3c84e74b31f757bb5015ad672d411527 to your computer and use it in GitHub Desktop.
Cygwin usr bin python
if [ $# -eq 0 ]
then
py
else
py `cygpath -m -- $1` "${@:2}" ;
fi
@amynbe
Copy link
Author

amynbe commented Dec 17, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment