From 6b49b17217ac8058910733c988078a455c3ecec5 Mon Sep 17 00:00:00 2001 From: Arfrever Frehtes Taifersar Arahesis Date: Tue, 30 Aug 2011 14:20:18 +0000 Subject: Improve PATH. --- python-updater | 4 ++++ 1 file changed, 4 insertions(+) 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" -- cgit v1.2.3-65-gdbad