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