Ensure config_root is preserved on BaseConfiguration init.

pull/1029/head
Kieran Prasch 2019-06-10 11:27:31 -07:00 committed by David Núñez
parent 701c7b5f15
commit 5c50a4efad
1 changed files with 3 additions and 1 deletions

View File

@ -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):