Skip to content

Instantly share code, notes, and snippets.

@rstms
Last active April 29, 2020 20:15
Show Gist options
  • Save rstms/3bd133959cf71c396d26123cbb0ab500 to your computer and use it in GitHub Desktop.
Save rstms/3bd133959cf71c396d26123cbb0ab500 to your computer and use it in GitHub Desktop.
sed 's/^\(BIN = """#!\).*$/\1{SHEBANG}/;s/u(BIN)/u(BIN.replace("{SHEBANG}", sys.executable))/'
@darrenjl0
Copy link

Thanks for this.

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