Last active
April 29, 2020 20:15
-
-
Save rstms/3bd133959cf71c396d26123cbb0ab500 to your computer and use it in GitHub Desktop.
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
sed 's/^\(BIN = """#!\).*$/\1{SHEBANG}/;s/u(BIN)/u(BIN.replace("{SHEBANG}", sys.executable))/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compatibility note: This assumes your system is unix-like and has
sed
on the path.