nixpkgs/pkgs
Frederik Rietdijk d68aba4cfb Python: script names now include full path
Certain programs, like zim, calibre and now also apparently mercurial,
rely on sys.argv[0] providing not just the script name but the full
path.

The Python docs [1] state the following on the matter:

> argv[0] is the script name (it is operating system dependent whether
this is a full pathname or not).

Therefore, scripts should not expect to receive a full path.
Unfortunately some do. While this can be considered a bug, there doesn't
seem any reason not to provide the full path. Therefore we now provide
the full path.

[1]
https://docs.python.org/3.5/library/sys.html?highlight=sys.argv#sys.argv
2017-01-02 11:29:11 +01:00
..
applications Merge branch 'master' into staging 2017-01-02 00:54:17 +01:00
build-support Revert "releaseTools.debBuild: split checkinstall into separate phase" 2016-12-31 02:13:04 +04:00
data nerdfonts: 0.8.0 -> 1.0.0 2016-12-29 11:21:57 +01:00
desktops
development Python: script names now include full path 2017-01-02 11:29:11 +01:00
games Merge pull request #21483 from rardiol/freeorion 2016-12-30 22:14:35 +00:00
misc Merge pull request #21574 from veprbl/ycm_fix 2017-01-02 00:10:04 +01:00
os-specific Merge branch 'master' into staging 2017-01-02 00:54:17 +01:00
servers matrix-synapse: 0.18.5 -> 0.18.6-rc2 2016-12-30 12:42:22 -08:00
shells
stdenv
test
tools Merge branch 'master' into staging 2017-01-02 00:54:17 +01:00
top-level astroid: init at 0.6 2017-01-01 22:38:12 +01:00