summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevan Franchini <twitch153@gentoo.org>2017-02-15 21:46:55 -0500
committerDevan Franchini <twitch153@gentoo.org>2017-02-15 21:47:37 -0500
commite9b6ef7e44c9bd9c940b60854490a894617fb3ed (patch)
treef00a9920c27db11de26123432aefa18ab403fe16
parentebuild.py: fix bashism (diff)
downloadwebapp-config-e9b6ef7e44c9bd9c940b60854490a894617fb3ed.tar.gz
webapp-config-e9b6ef7e44c9bd9c940b60854490a894617fb3ed.tar.bz2
webapp-config-e9b6ef7e44c9bd9c940b60854490a894617fb3ed.zip
eprefix.py: Adds EPREFIX variable to import in other places
X-Gentoo-Bug: 608018 X-Gentoo-Bug-URL: https://bugs.gentoo.org/608018
-rw-r--r--WebappConfig/eprefix.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/WebappConfig/eprefix.py b/WebappConfig/eprefix.py
new file mode 100644
index 0000000..7d5bd66
--- /dev/null
+++ b/WebappConfig/eprefix.py
@@ -0,0 +1,6 @@
+# Establish the eprefix, initially set so eprefixify can
+# set it on install
+EPREFIX = "@GENTOO_PORTAGE_EPREFIX@"
+# Check and set it if it wasn't
+if "GENTOO_PORTAGE_EPREFIX" in EPREFIX:
+ EPREFIX = ''