From 5bb6d08f61f9f2fb7bbb3a5049833755cec769c8 Mon Sep 17 00:00:00 2001 From: torlando-tech Date: Mon, 3 Nov 2025 23:25:49 -0500 Subject: [PATCH] fix import --- src/RNS/Interfaces/BLEInterface.py | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/src/RNS/Interfaces/BLEInterface.py b/src/RNS/Interfaces/BLEInterface.py index ba503a6..720cc8e 100644 --- a/src/RNS/Interfaces/BLEInterface.py +++ b/src/RNS/Interfaces/BLEInterface.py @@ -96,25 +96,17 @@ except ImportError: except ImportError: HAS_GATT_SERVER = False -# Import driver abstraction (relative import) +# Import driver abstraction try: - from .bluetooth_driver import BLEDriverInterface, BLEDevice + from bluetooth_driver import BLEDriverInterface, BLEDevice except ImportError: - # Fallback for development/testing - try: - from RNS.Interfaces.bluetooth_driver import BLEDriverInterface, BLEDevice - except ImportError: - from bluetooth_driver import BLEDriverInterface, BLEDevice + from RNS.Interfaces.bluetooth_driver import BLEDriverInterface, BLEDevice -# Import platform-specific driver (relative import) +# Import platform-specific driver try: - from .linux_bluetooth_driver import LinuxBluetoothDriver + from linux_bluetooth_driver import LinuxBluetoothDriver except ImportError: - # Fallback for development/testing - try: - from RNS.Interfaces.linux_bluetooth_driver import LinuxBluetoothDriver - except ImportError: - from linux_bluetooth_driver import LinuxBluetoothDriver + from RNS.Interfaces.linux_bluetooth_driver import LinuxBluetoothDriver HAS_DRIVER = True