python-env: wrap python executable with --resolve-argv0 (#462090)
This commit is contained in:
@@ -50,6 +50,7 @@ let
|
||||
if [ "$prg" = "${python.executable}" ]; then
|
||||
makeWrapper "${python.interpreter}" "$out/bin/$prg" \
|
||||
--inherit-argv0 \
|
||||
--resolve-argv0 \
|
||||
${lib.optionalString (!permitUserSite) ''--set PYTHONNOUSERSITE "true"''} \
|
||||
${lib.concatStringsSep " " makeWrapperArgs}
|
||||
elif [ "$(readlink "$prg")" = "${python.executable}" ]; then
|
||||
|
||||
Reference in New Issue
Block a user