wrapPythonProgram: exclude Python itself from PYTHONPATH

This commit is contained in:
Nikolay Amiantov
2016-08-17 06:18:07 +03:00
parent adafdb88f5
commit 837cf416ce
2 changed files with 3 additions and 0 deletions

View File

@@ -17,6 +17,8 @@ buildPythonPath() {
declare -A pythonPathsSeen=()
program_PYTHONPATH=
program_PATH=
pythonPathsSeen["@python@"]=1
addToSearchPath program_PATH @python@/bin
for path in $pythonPath; do
_addToPythonPath $path
done