Fix: Auto-fill emulator info on Windows only

(cherry picked from commit ccd19417ec3965fb2fa5a8040a00d88e4070ec9c)
This commit is contained in:
LmeSzinc 2024-07-18 21:59:24 +08:00
parent 0bffc37d60
commit 3357500277

View File

@ -3,6 +3,7 @@ import itertools
from lxml import etree
from module.device.env import IS_WINDOWS
# Patch pkg_resources before importing adbutils and uiautomator2
from module.device.pkg_resources import get_distribution
@ -86,7 +87,7 @@ class Device(Screenshot, Control, AppControl):
raise
# Auto-fill emulator info
if self.config.EmulatorInfo_Emulator == 'auto':
if IS_WINDOWS and self.config.EmulatorInfo_Emulator == 'auto':
_ = self.emulator_instance
# SRC only, use nemu_ipc if available