We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
尝试对 Python Binding 做了一些改进,详见 PR #445
该 PR 主要做了以下调整:
新增从环境变量中读取 MAAFW_BINARY_PATH (Maafw DLL 路径)的功能。
MAAFW_BINARY_PATH
调整包的初始化行为:
library.open()
{Python 安装目录}/Lib/site-packages/maa/bin
maa/library.py
移除 Library.initialized 变量,包含以下文件的改动: library.py buffer.py controller.py resource.py tasker.py toolkit.py
Library.initialized
library.py
buffer.py
controller.py
resource.py
tasker.py
toolkit.py
初始化时不再 print maafw 版本,同时移除了 ver 变量。如有需求,请自行调用 maa.Library.version() 获取。
ver
maa.Library.version()
同步修改了 binding_test.py 与 test.yml 中文件路径的逻辑
binding_test.py
test.yml
移除 library.py 多余代码,调整部分方法参数类型说明 f671a5e
这会带来如下改进:
The text was updated successfully, but these errors were encountered:
perf: 调整 Python Binding 初始化行为 (#445)
5d309df
改动详情见 #443 讨论历史见 #444 --------- Co-authored-by: MistEO <[email protected]>
Successfully merging a pull request may close this issue.
尝试对 Python Binding 做了一些改进,详见 PR #445
该 PR 主要做了以下调整:
新增从环境变量中读取
MAAFW_BINARY_PATH
(Maafw DLL 路径)的功能。调整包的初始化行为:
MAAFW_BINARY_PATH
,如存在且 bool != False,则将值传入library.open()
;否则,将{Python 安装目录}/Lib/site-packages/maa/bin
传入library.open()
maa/library.py
移除
Library.initialized
变量,包含以下文件的改动:library.py
buffer.py
controller.py
resource.py
tasker.py
toolkit.py
初始化时不再 print maafw 版本,同时移除了
ver
变量。如有需求,请自行调用maa.Library.version()
获取。同步修改了
binding_test.py
与test.yml
中文件路径的逻辑移除
library.py
多余代码,调整部分方法参数类型说明 f671a5e这会带来如下改进:
maa/library.py
The text was updated successfully, but these errors were encountered: