From 5c50a4efadd365a569014016a2756de7e1dc5a8a Mon Sep 17 00:00:00 2001 From: Kieran Prasch Date: Mon, 10 Jun 2019 11:27:31 -0700 Subject: [PATCH] Ensure config_root is preserved on BaseConfiguration init. --- nucypher/config/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nucypher/config/base.py b/nucypher/config/base.py index 8155df56d..660afc30a 100644 --- a/nucypher/config/base.py +++ b/nucypher/config/base.py @@ -27,7 +27,9 @@ class BaseConfiguration(ABC): *args, **kwargs): self.config_root = config_root or self.DEFAULT_CONFIG_ROOT - self.filepath = filepath or self.default_filepath() + if not filepath: + filepath = os.path.join(self.config_root, self.generate_filename()) + self.filepath = filepath super().__init__() def __eq__(self, other):