From: Marius Mauch Date: Tue, 9 Jan 2007 01:18:30 +0000 (-0000) Subject: Make PORTAGE_BASE_PATH dynamic based on __file__ X-Git-Tag: v2.1.2~141 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6878038bab3ec42f517fd14a3fed63fe6ec42c30;p=portage.git Make PORTAGE_BASE_PATH dynamic based on __file__ svn path=/main/trunk/; revision=5486 --- 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"