diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2017-01-01 17:57:26 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-01-02 11:29:11 +0100 |
commit | d68aba4cfb5d7998fbd087f7bf6f5d6f9fb5416a (patch) | |
tree | b7f481b8b6b7a9f34c7816d2227819b7ef7d8c84 /pkgs/applications/office | |
parent | 5a67b130b9b4d72a4398b8f0cd4893674213fb20 (diff) | |
download | nixlib-d68aba4cfb5d7998fbd087f7bf6f5d6f9fb5416a.tar nixlib-d68aba4cfb5d7998fbd087f7bf6f5d6f9fb5416a.tar.gz nixlib-d68aba4cfb5d7998fbd087f7bf6f5d6f9fb5416a.tar.bz2 nixlib-d68aba4cfb5d7998fbd087f7bf6f5d6f9fb5416a.tar.lz nixlib-d68aba4cfb5d7998fbd087f7bf6f5d6f9fb5416a.tar.xz nixlib-d68aba4cfb5d7998fbd087f7bf6f5d6f9fb5416a.tar.zst nixlib-d68aba4cfb5d7998fbd087f7bf6f5d6f9fb5416a.zip |
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
Diffstat (limited to 'pkgs/applications/office')
0 files changed, 0 insertions, 0 deletions