summaryrefslogtreecommitdiffstats
path: root/pym/portage_const.py
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2007-01-09 01:18:30 +0000
committerMarius Mauch <genone@gentoo.org>2007-01-09 01:18:30 +0000
commit6878038bab3ec42f517fd14a3fed63fe6ec42c30 (patch)
treef8c551afe5fc70ccd49bc11105402e0f6c8462bf /pym/portage_const.py
parent64715f30c51de3df872ead203eadae78409d1f90 (diff)
downloadportage-6878038bab3ec42f517fd14a3fed63fe6ec42c30.tar.gz
portage-6878038bab3ec42f517fd14a3fed63fe6ec42c30.tar.bz2
portage-6878038bab3ec42f517fd14a3fed63fe6ec42c30.zip
Make PORTAGE_BASE_PATH dynamic based on __file__
svn path=/main/trunk/; revision=5486
Diffstat (limited to 'pym/portage_const.py')
-rw-r--r--pym/portage_const.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pym/portage_const.py b/pym/portage_const.py
index faf20c2c3..471d94f58 100644
--- a/pym/portage_const.py
+++ b/pym/portage_const.py
@@ -8,6 +8,8 @@
# START OF CONSTANTS -- START OF CONSTANTS -- START OF CONSTANTS -- START OF
# ===========================================================================
+import os
+
VDB_PATH = "var/db/pkg"
PRIVATE_PATH = "var/lib/portage"
CACHE_PATH = "/var/cache/edb"
@@ -17,7 +19,8 @@ USER_CONFIG_PATH = "/etc/portage"
MODULES_FILE_PATH = USER_CONFIG_PATH+"/modules"
CUSTOM_PROFILE_PATH = USER_CONFIG_PATH+"/profile"
-PORTAGE_BASE_PATH = "/usr/lib/portage"
+#PORTAGE_BASE_PATH = "/usr/lib/portage"
+PORTAGE_BASE_PATH = os.path.join(os.sep, os.sep.join(__file__.split(os.sep)[:-2]))
PORTAGE_BIN_PATH = PORTAGE_BASE_PATH+"/bin"
PORTAGE_PYM_PATH = PORTAGE_BASE_PATH+"/pym"
PROFILE_PATH = "/etc/make.profile"