From 4d0ac3220e4237d2d4d2a80f4a701dc2e51bf2e0 Mon Sep 17 00:00:00 2001 From: m0sia Date: Wed, 21 Mar 2018 16:47:26 -0500 Subject: dbus is available only on linux --- parrot_zik/bluetooth_paired_devices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parrot_zik/bluetooth_paired_devices.py b/parrot_zik/bluetooth_paired_devices.py index 82348a5..5f5d443 100644 --- a/parrot_zik/bluetooth_paired_devices.py +++ b/parrot_zik/bluetooth_paired_devices.py @@ -9,7 +9,8 @@ if sys.platform == "darwin": import lightblue else: import bluetooth - import dbus + if sys.platform in ['linux', 'linux2']: + import dbus if sys.platform == "win32": import _winreg -- cgit v1.2.1