Fix automatic path detection to account for new location
authorMarius Mauch <genone@gentoo.org>
Thu, 25 Jan 2007 21:53:25 +0000 (21:53 -0000)
committerMarius Mauch <genone@gentoo.org>
Thu, 25 Jan 2007 21:53:25 +0000 (21:53 -0000)
svn path=/main/trunk/; revision=5789

pym/portage/const.py

index e1af7cb442060e6b9a135251774f83104dd58692..fa1187fa7303cffb599d68da1620b0a1ebdc9187 100644 (file)
@@ -20,7 +20,7 @@ MODULES_FILE_PATH       = USER_CONFIG_PATH+"/modules"
 CUSTOM_PROFILE_PATH     = USER_CONFIG_PATH+"/profile"
 
 #PORTAGE_BASE_PATH       = "/usr/lib/portage"
-PORTAGE_BASE_PATH       = os.path.join(os.sep, os.sep.join(__file__.split(os.sep)[:-2]))
+PORTAGE_BASE_PATH       = os.path.join(os.sep, os.sep.join(__file__.split(os.sep)[:-3]))
 PORTAGE_BIN_PATH        = PORTAGE_BASE_PATH+"/bin"
 PORTAGE_PYM_PATH        = PORTAGE_BASE_PATH+"/pym"
 NEWS_LIB_PATH           = "/var/lib/gentoo"