3fe4a3bd14
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/genlink@3016 6952d904-891a-0410-993b-d76249ca496b
38 lines
1.5 KiB
Diff
38 lines
1.5 KiB
Diff
--- src/launcher.bash
|
|
+++ src/launcher.bash
|
|
@@ -6,6 +6,19 @@
|
|
exit 1
|
|
}
|
|
|
|
+# Save Python-specific variables for support for Jython
|
|
+# ---------------------
|
|
+_EPYTHON="${EPYTHON}"
|
|
+_GENTOO_PYTHON_PROCESS_NAME="${GENTOO_PYTHON_PROCESS_NAME}"
|
|
+_GENTOO_PYTHON_WRAPPER_SCRIPT_PATH="${GENTOO_PYTHON_WRAPPER_SCRIPT_PATH}"
|
|
+_GENTOO_PYTHON_TARGET_SCRIPT_PATH="${GENTOO_PYTHON_TARGET_SCRIPT_PATH}"
|
|
+_GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION="${GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION}"
|
|
+unset EPYTHON
|
|
+unset GENTOO_PYTHON_PROCESS_NAME
|
|
+unset GENTOO_PYTHON_WRAPPER_SCRIPT_PATH
|
|
+unset GENTOO_PYTHON_TARGET_SCRIPT_PATH
|
|
+unset GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION
|
|
+
|
|
# Source package env
|
|
# ---------------------
|
|
gjl_user_env="${HOME}/.gentoo/java-config-2/launcher.d/${gjl_package}"
|
|
@@ -54,6 +67,14 @@
|
|
abort "Dont know what to run :(("
|
|
fi
|
|
|
|
+# Restore Python-specific variables for support for Jython
|
|
+# ---------------------
|
|
+[[ -n ${_EPYTHON} ]] && export EPYTHON="${_EPYTHON}"
|
|
+[[ -n ${_GENTOO_PYTHON_PROCESS_NAME} ]] && export GENTOO_PYTHON_PROCESS_NAME="${_GENTOO_PYTHON_PROCESS_NAME}"
|
|
+[[ -n ${_GENTOO_PYTHON_WRAPPER_SCRIPT_PATH} ]] && export GENTOO_PYTHON_WRAPPER_SCRIPT_PATH="${_GENTOO_PYTHON_WRAPPER_SCRIPT_PATH}"
|
|
+[[ -n ${_GENTOO_PYTHON_TARGET_SCRIPT_PATH} ]] && export GENTOO_PYTHON_TARGET_SCRIPT_PATH="${_GENTOO_PYTHON_TARGET_SCRIPT_PATH}"
|
|
+[[ -n ${_GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION} ]] && export GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION="${_GENTOO_PYTHON_TARGET_SCRIPT_PATH_VERIFICATION}"
|
|
+
|
|
# Run it
|
|
# --------
|
|
|