mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-20 02:55:38 +08:00
refactor.读取资源接口解耦
This commit is contained in:
@@ -4,6 +4,7 @@ author: Black Cat Bon
|
||||
version: v2.0.1
|
||||
"""
|
||||
|
||||
from importlib.resources import path
|
||||
import threading
|
||||
import time
|
||||
import schedule
|
||||
@@ -110,8 +111,10 @@ if __name__ == "__main__":
|
||||
|
||||
print(m, d, arg)
|
||||
|
||||
dirname: str = (pathlib.Path.cwd()).__str__()
|
||||
asst = Asst(dirname=dirname, callback=my_callback)
|
||||
path: str = (pathlib.Path.cwd()).__str__()
|
||||
Asst.load(path)
|
||||
|
||||
asst = Asst(callback=my_callback)
|
||||
|
||||
print('version', asst.get_version())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user