refactor: Move balance tool classes to standard package structure (Package-by-Layer)

This commit is contained in:
jade
2026-07-09 21:45:39 +09:00
parent 20e67a297d
commit 1e79e903ae
7 changed files with 78 additions and 4 deletions

16
fix_props.py Normal file
View File

@@ -0,0 +1,16 @@
import os
for root, _, files in os.walk('.'):
for f in files:
if f == 'application-local.properties':
p = os.path.join(root, f)
try:
content = open(p, encoding='utf-8').read()
except Exception:
content = open(p, encoding='cp949').read()
content = content.replace('localhost:/', 'localhost:${server.port}/')
content = content.replace('localhost:\n', 'localhost:${server.port}\n')
with open(p, 'w', encoding='utf-8') as out:
out.write(content)