mirror of https://github.com/nucypher/nucypher.git
Ensure config_root is preserved on BaseConfiguration init.
parent
701c7b5f15
commit
5c50a4efad
|
@ -27,7 +27,9 @@ class BaseConfiguration(ABC):
|
||||||
*args, **kwargs):
|
*args, **kwargs):
|
||||||
|
|
||||||
self.config_root = config_root or self.DEFAULT_CONFIG_ROOT
|
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__()
|
super().__init__()
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
|
|
Loading…
Reference in New Issue