-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated newline in shebang of windows launcher #220
Comments
Or maybe just do the equivalent of |
Maybe we can ensure the shebang ends in It seems that
This should work. if not shebang.endswith(b'\n'):
shebang += b'\n' Or just hardcode a newline here in case of contrived shebang and remove the check, since Lines 172 to 174 in 888c48b
|
I suppose that if not shebang.endswith(b'\n'):
shebang += b'\n' |
ScriptMaker._build_shebang
hardcoded ab'\n'
.distlib/distlib/scripts.py
Lines 169 to 170 in 888c48b
However,
ScriptMaker._write_script
will check forb'\r\n'
, which is non existant.distlib/distlib/scripts.py
Lines 255 to 257 in 888c48b
Remove the hardcoded
b'\n'
and letScriptMaker._write_script
to generate newline for shebang is more universal but check for a singleb'\n'
on windows might be better.The text was updated successfully, but these errors were encountered: