summaryrefslogtreecommitdiffstats
path: root/gatt/gatt.py
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2023-10-01 10:52:07 (EDT)
committer P. J. McDermott <pj@pehjota.net>2023-10-01 10:52:07 (EDT)
commit1369c3fcb52c7e6500bf52ecfddf113747f05047 (patch)
tree2862ad27d6028c1ebcc47b05396c956157059960 /gatt/gatt.py
downloadgatt-python-upstream/0.2.7.zip
gatt-python-upstream/0.2.7.tar.gz
gatt-python-upstream/0.2.7.tar.bz2
New upstream version 0.2.7upstream/0.2.7upstream/latest
Diffstat (limited to 'gatt/gatt.py')
-rw-r--r--gatt/gatt.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/gatt/gatt.py b/gatt/gatt.py
new file mode 100644
index 0000000..d0bdd8e
--- /dev/null
+++ b/gatt/gatt.py
@@ -0,0 +1,11 @@
+import os
+import platform
+
+if platform.system() == 'Linux':
+ if os.environ.get('LINUX_WITHOUT_DBUS', '0') == '0':
+ from .gatt_linux import *
+ else:
+ from .gatt_stubs import *
+else:
+ # TODO: Add support for more platforms
+ from .gatt_stubs import *