Last active
August 27, 2019 09:57
-
-
Save heetbeet/f80f5029b9f17a81cc17ba903aac1ad3 to your computer and use it in GitHub Desktop.
A Linux/Windows header to run a file (with .bat extension) as a Python script. Python must be in os path.
This file contains hidden or 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
""" " 2>NULL & @echo off 2>/dev/null | |
:; /usr/bin/env python "$0" "${@}"; exit $? | |
@echo off & call python %0 %* & exit /b | |
""" | |
print('hello') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment