Skip to content

Commit

Permalink
fix: 修复因系统变量不存在引发的 Python Binding 异常 (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
weinibuliu authored Dec 5, 2024
1 parent f281eea commit 6001df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/binding/Python/maa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

from .library import Library

env_path = Path(os.environ.get("MAAFW_BINARY_PATH"))
env_path = os.environ.get("MAAFW_BINARY_PATH")
if env_path:
__PATH = env_path
__PATH = Path(env_path)
else:
__PATH = Path(Path(__file__).parent, "bin")

Expand Down

0 comments on commit 6001df0

Please sign in to comment.