From 6878038bab3ec42f517fd14a3fed63fe6ec42c30 Mon Sep 17 00:00:00 2001 From: Marius Mauch Date: Tue, 9 Jan 2007 01:18:30 +0000 Subject: [PATCH] Make PORTAGE_BASE_PATH dynamic based on __file__ svn path=/main/trunk/; revision=5486 --- pym/portage_const.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" -- 2.26.2