From 7003f65f97961edff722bafdcd2ac500a8bffc22 Mon Sep 17 00:00:00 2001 From: Marvin <80249928+Syntrael@users.noreply.github.com> Date: Wed, 24 Jan 2024 15:20:44 +0100 Subject: [PATCH 1/2] Fixed import error when used as submodule --- advertisement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advertisement.py b/advertisement.py index 86a31c5..5fc0f6a 100755 --- a/advertisement.py +++ b/advertisement.py @@ -22,7 +22,7 @@ import dbus import dbus.service -from bletools import BleTools +from .bletools import BleTools BLUEZ_SERVICE_NAME = "org.bluez" LE_ADVERTISING_MANAGER_IFACE = "org.bluez.LEAdvertisingManager1" From 4b8b4808f910f5b41f6cf707f8037b9ff29ea707 Mon Sep 17 00:00:00 2001 From: Marvin <80249928+Syntrael@users.noreply.github.com> Date: Wed, 24 Jan 2024 15:21:04 +0100 Subject: [PATCH 2/2] Fixed import error when used as submodule --- service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.py b/service.py index 72ead6a..5d1aabf 100755 --- a/service.py +++ b/service.py @@ -26,7 +26,7 @@ from gi.repository import GObject except ImportError: import gobject as GObject -from bletools import BleTools +from .bletools import BleTools BLUEZ_SERVICE_NAME = "org.bluez" GATT_MANAGER_IFACE = "org.bluez.GattManager1"