get config file after initializing multiprocessing.

This commit is contained in:
Roland 2024-05-14 20:29:19 -06:00
parent 18a652e933
commit 7cdf5f3323
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -309,11 +309,12 @@ class ConfigFile:
def initialize(self, multiprocessing_dict: Optional[DictProxy] = None):
"""Initializes this config dict using the default config and the config file."""
config_file = self.get_file()
# Use the provided multiprocessing.Manager().dict(), or dict() for testing.
self._config = multiprocessing_dict or dict()
# Use the default settings to initialize the config.
self._config.update(deepcopy(self.default_config))
config_file = self.get_file()
if config_file.is_file():
# Use the config file to get the values the user set.
with config_file.open('rt') as fh: