From 94ca975d56c291e16fa41d5f90d102a6bcc5c0ac Mon Sep 17 00:00:00 2001 From: YoursFunny Date: Mon, 6 Jul 2026 01:51:01 +0800 Subject: [PATCH] fix: use autofill emulator info on Windows only --- module/device/device.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/device/device.py b/module/device/device.py index 11d8d13..ad97d15 100644 --- a/module/device/device.py +++ b/module/device/device.py @@ -2,6 +2,7 @@ import collections 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 @@ -85,7 +86,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 self.screenshot_interval_set()