if mysettings.get("PORT_LOGDIR"):
logdir = normalize_path(mysettings["PORT_LOGDIR"])
else:
- logdir = os.path.join(mysettings["EPREFIX"], "var", "log", "portage")
+ logdir = os.path.join(os.sep, mysettings["EPREFIX"].lstrip(os.sep),
+ "var", "log", "portage")
if not os.path.isdir(logdir):
# Only initialize group/mode if the directory doesn't
if mysettings.get("PORT_LOGDIR"):
logdir = normalize_path(mysettings["PORT_LOGDIR"])
else:
- logdir = os.path.join(mysettings["EPREFIX"], "var", "log", "portage")
+ logdir = os.path.join(os.sep, mysettings["EPREFIX"].lstrip(os.sep),
+ "var", "log", "portage")
if not os.path.isdir(logdir):
# Only initialize group/mode if the directory doesn't