diff options
-rw-r--r-- | pym/portage/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 8dbc3bbe7..129804632 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -926,8 +926,8 @@ class config: if config_root is None: config_root = "/" - config_root = \ - normalize_path(os.path.abspath(config_root)) + os.path.sep + config_root = normalize_path(os.path.abspath( + config_root)).rstrip(os.path.sep) + os.path.sep check_var_directory("PORTAGE_CONFIGROOT", config_root) @@ -1178,8 +1178,8 @@ class config: if target_root is None: target_root = "/" - target_root = \ - normalize_path(os.path.abspath(target_root)) + os.path.sep + target_root = normalize_path(os.path.abspath( + target_root)).rstrip(os.path.sep) + os.path.sep check_var_directory("ROOT", target_root) |