init within init
This commit is contained in:
parent
801504f0ba
commit
54780117be
2 changed files with 5 additions and 2 deletions
|
|
@ -127,7 +127,7 @@ def main() -> List[Tuple[Subscription, FileHandlerTransactionLog]]:
|
||||||
args, extra_args = parser.parse_known_args()
|
args, extra_args = parser.parse_known_args()
|
||||||
|
|
||||||
# Load the config
|
# Load the config
|
||||||
config: ConfigFile = ConfigFile.from_file_path(args.config).initialize()
|
config: ConfigFile = ConfigFile.from_file_path(args.config)
|
||||||
transaction_logs: List[Tuple[Subscription, FileHandlerTransactionLog]] = []
|
transaction_logs: List[Tuple[Subscription, FileHandlerTransactionLog]] = []
|
||||||
|
|
||||||
with working_directory_lock(config=config):
|
with working_directory_lock(config=config):
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,10 @@ class ConfigFile(ConfigValidator):
|
||||||
for preset_name, preset_dict in self.presets.dict.items():
|
for preset_name, preset_dict in self.presets.dict.items():
|
||||||
Preset.preset_partial_validate(config=self, name=preset_name, value=preset_dict)
|
Preset.preset_partial_validate(config=self, name=preset_name, value=preset_dict)
|
||||||
|
|
||||||
def initialize(self):
|
# After validation, perform initialization
|
||||||
|
self._initialize()
|
||||||
|
|
||||||
|
def _initialize(self):
|
||||||
"""
|
"""
|
||||||
Configures things (umask, pgid) prior to any downloading
|
Configures things (umask, pgid) prior to any downloading
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue