Skip to content
Unverified Commit 5f01cc70 authored by aszlig's avatar aszlig
Browse files

python-wrapper: Fix fixup for wrapped argv[0].

Fixes issues introduced by 24ef871e

.

The problem here is that "import sys; sys.argv[0] = ..." is just
appended after the first "#!", which in turn breaks things such as
encoding specifications. A second problem - although not very common -
is when there's another #! within the script.

This should take care of both cases.

Signed-off-by: default avataraszlig <aszlig@redmoonstudios.org>
parent e57249ab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment