From 79cb3c8f12dc1d114a81fa01add441416d7c7f02 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 18 Oct 2009 01:57:51 +0000 Subject: [PATCH] Call config._init_dirs() from emerge so that it's not called every time the portage api is imported. svn path=/main/trunk/; revision=14631 --- 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 febe3b545..6db7fb13c 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -2599,6 +2599,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 0ada1eb68..521cb53c4 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