nixpkgs-suyu/pkgs/development
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
..
arduino
beam-modules
bower-modules/generic
compilers Merge branch 'master' into staging 2017-01-02 00:54:17 +01:00
coq-modules coq_8_6: 8.6 is now default, 8.4 optional, updated mathcomp/ssreflect 2016-12-22 10:35:56 -08:00
dotnet-modules/patches
eclipse/ecj
em-modules/generic
go-modules buildGoPackage: reduce the default meta.platforms 2016-12-14 10:26:20 +01:00
guile-modules
haskell-modules haskellPackages.Glob: jailbreak to support GHC 8.0.2-rc2 2016-12-29 18:00:56 +01:00
idris-modules idrisPackages.httpclient: init 2016-12-20 00:28:23 +01:00
interpreters Python: script names now include full path 2017-01-02 11:29:11 +01:00
libraries add introspection to gmime 2017-01-01 22:38:12 +01:00
lisp-modules
lua-modules
misc loc: 0.3.3 -> 0.3.4 2016-12-08 09:59:47 -05:00
mobile android-sdk: 25.2.2 -> 25.2.3 2016-12-10 19:51:55 +09:00
node-packages yarn: init at 0.17.8 (#20635) 2016-12-14 15:46:45 +01:00
ocaml-modules Merge pull request #19765 from FlorentBecker/some_buildOcaml 2016-12-30 20:47:50 +00:00
perl-modules perlPackages.DBDmysql: 4.039 -> 4.041 for CVE-2016-1251 2016-12-15 17:17:57 -05:00
pharo
pure-modules
python-modules Merge branch 'master' into staging 2016-12-29 13:56:16 +01:00
qtcreator qtcreator: 4.1.0 -> 4.2.0 2016-12-29 22:32:23 +03:00
r-modules rPackages.DescTools: unbreak build outside of Linux. (#20787) 2016-12-13 16:25:44 +01:00
ruby-modules gem-config: add lxc as a dependency for ruby-lxc 2016-12-18 20:10:34 +01:00
tools Merge branch 'master' into staging 2017-01-02 00:54:17 +01:00
web nodejs: add bash completions for npm 2016-12-11 15:14:38 +01:00