From f117b8e0dcb5632b58c44da92d7073e51888db59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E7=91=97=E6=9D=B0?= <3695888@qq.com> Date: Sat, 21 Jan 2023 23:05:34 +0800 Subject: [PATCH] fix build faild --- Difficult_Rocket/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Difficult_Rocket/__init__.py b/Difficult_Rocket/__init__.py index 67bffa9..c321e8c 100644 --- a/Difficult_Rocket/__init__.py +++ b/Difficult_Rocket/__init__.py @@ -11,10 +11,10 @@ github: @shenjackyuanjie gitee: @shenjackyuanjie """ # import ctypes +import sys import logging from typing import List, Dict, Union, Optional -import pyglet from Difficult_Rocket.api.types import Options from libs.MCDR.version import Version @@ -66,7 +66,7 @@ class _DR_option(Options): gui_scale: float = 1.0 # default 1.0 2.0 -> 2x 3 -> 3x def init(self, **kwargs): - if not pyglet.compat_platform == 'darwin': # MacOS 的测试只能在 Macos 上跑 + if not sys.platform == 'darwin': # MacOS 的测试只能在 Macos 上跑 self.pyglet_macosx_dev_test = False try: self.DR_rust_available = True @@ -129,6 +129,7 @@ DR_runtime = _DR_runtime() if __name__ == '__main__': print(DR_option.InputBox_use_TextEntry) + print(sys.platform) ... if DR_option.playing: