python: fix to ensure that PYTHON environment variable is not leaking into the sandbox if the target is not including python at all

This commit is contained in:
Christian Wiese
2010-03-31 17:34:11 +02:00
parent f9af219aae
commit 9664cf516a
+4 -1
View File
@@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../python/parse-config
# Copyright (C) 2009 The OpenSDE Project
# Copyright (C) 2009 - 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
@@ -21,4 +21,7 @@ if pkginstalled -f python; then
done
export PYTHONPATH
fi
else
# ensure that PYTHON environment variable is not leaking into the sandbox
unset PYTHON
fi