summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-03-26 15:23:17 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2010-03-26 15:23:17 +0000
commit9085a53d04f131ae1827f3388b189732c1e2f516 (patch)
tree307d4c2b071d4c09ae84cf46cca0ee4720545aba /eclass/python.eclass
parentVersion bump (diff)
downloadgentoo-2-9085a53d04f131ae1827f3388b189732c1e2f516.tar.gz
gentoo-2-9085a53d04f131ae1827f3388b189732c1e2f516.tar.bz2
gentoo-2-9085a53d04f131ae1827f3388b189732c1e2f516.zip
Set GENTOO_PYTHON_PROCESS_NAME environmental variable in wrapper scripts generated by python_generate_wrapper_scripts(), because Python process now unsets this variable at the beginning of execution of wrapper scripts, but this variable should be set also at the beginning of execution of target scripts.
Diffstat (limited to 'eclass/python.eclass')
-rw-r--r--eclass/python.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/python.eclass b/eclass/python.eclass
index b8800ee4b69e..a4315519f081 100644
--- a/eclass/python.eclass
+++ b/eclass/python.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.95 2010/03/20 17:59:40 arfrever Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/python.eclass,v 1.96 2010/03/26 15:23:17 arfrever Exp $
# @ECLASS: python.eclass
# @MAINTAINER:
@@ -848,6 +848,7 @@ EOF
wrapper_script_path = os.path.realpath(sys.argv[0])
target_executable_path = "%s-%s" % (wrapper_script_path, PYTHON_ABI)
+os.environ["GENTOO_PYTHON_PROCESS_NAME"] = os.path.basename(sys.argv[0])
os.environ["GENTOO_PYTHON_WRAPPER_SCRIPT_PATH"] = sys.argv[0]
os.environ["GENTOO_PYTHON_TARGET_SCRIPT_PATH"] = target_executable_path
if not os.path.exists(target_executable_path):