mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
get config file after initializing multiprocessing.
This commit is contained in:
parent
18a652e933
commit
7cdf5f3323
1 changed files with 2 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue