diff options
Diffstat (limited to '')
-rw-r--r-- | BluetoothPairedDevices.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/BluetoothPairedDevices.py b/BluetoothPairedDevices.py index 96d1a8d..52b9a7d 100644 --- a/BluetoothPairedDevices.py +++ b/BluetoothPairedDevices.py @@ -2,6 +2,11 @@ import sys import re import os +if sys.platform == "darwin": + from binplist import binplist +elif sys.platform == "win32": + import _winreg + def ParrotZikMac(): p = re.compile('90:03:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}:[0-9A-Fa-f]{2}') @@ -35,8 +40,3 @@ def ParrotZikMac(): except EnvironmentError: pass - -if sys.platform == "darwin": - from binplist import binplist -elif sys.platform == "win32": - import _winreg |