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 kde5.plasma: 5.8.4 -> 5.8.5 2016-12-28 06:43:10 -06:00
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 zsh: 5.3 -> 5.3.1 2016-12-21 21:21:59 +01:00
stdenv top-level: avoid another assert false while we're at it 2016-12-15 17:09:46 -05:00
test Remove cruft 2016-04-26 17:31:54 +02:00
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