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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user