diff --git a/Scripts/shared.py b/Scripts/shared.py index 4a6f616..2ce13c2 100644 --- a/Scripts/shared.py +++ b/Scripts/shared.py @@ -7,7 +7,7 @@ from Scripts._build import BUILD -VERSION = "0.0.9" +VERSION = "0.1.1" if getattr(sys, "frozen", False) and hasattr(sys, "_MEIPASS"): current_dir = Path(sys.executable).parent diff --git a/Windows.py b/Windows.py index 474ce17..54ae44b 100644 --- a/Windows.py +++ b/Windows.py @@ -2,9 +2,17 @@ import json import time from enum import Enum -from pathlib import Path -import wmi # pylint: disable=import-error +try: + import wmi # pylint: disable=import-error +except Exception: # pylint: disable=broad-except + # Dummy WMI + class wmi: # pylint: disable=invalid-name + class WMI: + @staticmethod + def query(*args, **kwargs): # pylint: disable=unused-argument + return [] + from base import BaseUSBMap from Scripts import shared, usbdump