From b7bc0be80c741ba8e6f6f2b67e9d18728229baba Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 18 Oct 2009 04:05:10 +0000 Subject: [PATCH] Call config._init_dirs() from emerge so that it's not called every time the portage api is imported. (trunk r14631) svn path=/main/branches/2.1.7/; revision=14659 --- pym/_emerge/actions.py | 1 + pym/portage/__init__.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index faaf3f845..9ae7f0982 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2420,6 +2420,7 @@ def load_emerge_config(trees=None): for root, root_trees in trees.items(): settings = root_trees["vartree"].settings + settings._init_dirs() setconfig = load_default_config(settings, root_trees) root_trees["root_config"] = RootConfig(settings, root_trees, setconfig) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index ec6f5b96e..57a894f40 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -2211,8 +2211,6 @@ class config(object): _validate_cache_for_unsupported_eapis = False _glep_55_enabled = True - self._init_dirs() - for k in self._case_insensitive_vars: if k in self: self[k] = self[k].lower() -- 2.26.2