mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 05:08:19 +08:00
Refactor: Atomic file read/write for better performance
- Drop dependency atomicwrites
This commit is contained in:
@@ -90,6 +90,9 @@ class DeployConfig(ConfigModel):
|
||||
logger.info(f"Rest of the configs are the same as default")
|
||||
|
||||
def read(self):
|
||||
"""
|
||||
Read and update deploy config, copy `self.configs` to properties.
|
||||
"""
|
||||
self.config = poor_yaml_read(DEPLOY_TEMPLATE)
|
||||
self.config_template = copy.deepcopy(self.config)
|
||||
origin = poor_yaml_read(self.file)
|
||||
|
||||
Reference in New Issue
Block a user