diff options
author | m0sia <m0sia@m0sia.ru> | 2018-03-21 16:47:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-21 16:47:26 -0500 |
commit | 4d0ac3220e4237d2d4d2a80f4a701dc2e51bf2e0 (patch) | |
tree | 73024d26a288516969fb819ff161b1b524b45da4 /parrot_zik | |
parent | 4ba00c00067be47e0faad2a198cac938e01341d5 (diff) | |
download | pyParrotZikTCP-4d0ac3220e4237d2d4d2a80f4a701dc2e51bf2e0.tar.xz pyParrotZikTCP-4d0ac3220e4237d2d4d2a80f4a701dc2e51bf2e0.zip |
dbus is available only on linux
Diffstat (limited to '')
-rw-r--r-- | parrot_zik/bluetooth_paired_devices.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |