summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'python-updater')
-rwxr-xr-xpython-updater4
1 files changed, 4 insertions, 0 deletions
diff --git a/python-updater b/python-updater
index e38bbf6..cd3803c 100755
--- a/python-updater
+++ b/python-updater
@@ -458,6 +458,10 @@ while [[ -n "${1}" ]]; do
shift
done
+if [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "emerge" ]]; then
+ PATH="$(/usr/bin/python -c "import os; print(os.path.dirname(os.path.realpath('$(type -p emerge)')))")/ebuild-helpers:${PATH}"
+fi
+
if has_version "=dev-lang/python-2*"; then
if [[ "$(readlink /usr/bin/python2)" != "python2."* ]]; then
die "'/usr/bin/python2' is not valid symlink"