28 lines
748 B
Python
28 lines
748 B
Python
"""
|
||
account-manager CLI 入口。
|
||
|
||
分层:cli(argv)→ service(用例)→ db(SQLite);共用工具在 util/。
|
||
"""
|
||
import os
|
||
import sys
|
||
|
||
_scripts_dir = os.path.dirname(os.path.abspath(__file__))
|
||
if _scripts_dir not in sys.path:
|
||
sys.path.insert(0, _scripts_dir)
|
||
|
||
from jiangchang_skill_core.runtime_env import apply_cli_local_defaults
|
||
|
||
apply_cli_local_defaults()
|
||
|
||
# Windows GBK 编码兼容修复(须在任何业务 import 与 print 之前)
|
||
if sys.platform == "win32":
|
||
import io
|
||
|
||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8", errors="replace")
|
||
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding="utf-8", errors="replace")
|
||
|
||
from cli.app import main
|
||
|
||
if __name__ == "__main__":
|
||
main()
|