mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 12:08:21 +08:00
Opt: Enhancement clean up
This commit is contained in:
@@ -182,7 +182,7 @@ class ModuleExtractor:
|
||||
folder = os.path.join(MODULE_FOLDER, self.name)
|
||||
if not os.path.exists(folder):
|
||||
os.mkdir(folder)
|
||||
with open(os.path.join(folder, BUTTON_FILE), 'w') as f:
|
||||
with open(os.path.join(folder, BUTTON_FILE), 'w', newline='') as f:
|
||||
for text in self.expression:
|
||||
f.write(text + '\n')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user