Python wrapper: undo change 8d76effc17

because we would otherwise end up with broken wrappers because PATH and
PTYHONPATH weren't set.
This commit is contained in:
Frederik Rietdijk 2017-07-30 08:42:33 +02:00
parent 20b8e4b4cf
commit 6128dd4d50

View File

@ -86,7 +86,7 @@ wrapPythonProgramsIn() {
_addToPythonPath() {
local dir="$1"
# Stop if we've already visited here.
[ -n "${pythonPathsSeen[$dir]}" ] || return 0
if [ -n "${pythonPathsSeen[$dir]}" ]; then return; fi
pythonPathsSeen[$dir]=1
# addToSearchPath is defined in stdenv/generic/setup.sh. It will have
# the effect of calling `export program_X=$dir/...:$program_X`.