summaryrefslogtreecommitdiff
path: root/bin/euse
diff options
context:
space:
mode:
Diffstat (limited to 'bin/euse')
-rwxr-xr-xbin/euse5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/euse b/bin/euse
index 35b3d45..297d4f6 100755
--- a/bin/euse
+++ b/bin/euse
@@ -9,8 +9,9 @@
PROGRAM_NAME=euse
VERSION="svn"
-ETC="/etc"
-USR_SHARE_PORTAGE="/usr/share/portage"
+EPREFIX=${EPREFIX:-$(portageq envvar EPREFIX)}
+ETC="${EPREFIX}/etc"
+USR_SHARE_PORTAGE="${EPREFIX}/usr/share/portage"
# define error function so it can be used immediately
error() {