nixpkgs/pkgs/development/python-modules/generic
aszlig 5f01cc70d3
python-wrapper: Fix fixup for wrapped argv[0].
Fixes issues introduced by 24ef871e6a.

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: aszlig <aszlig@redmoonstudios.org>
2014-07-28 04:18:21 +02:00
..
default.nix fixes #2926 2014-06-15 16:05:18 +02:00
wrap.sh python-wrapper: Fix fixup for wrapped argv[0]. 2014-07-28 04:18:21 +02:00