From: 
Subject: Debian changes

The Debian packaging of python-pymicro-wakeword is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/python-pymicro-wakeword
    % cd python-pymicro-wakeword
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone python-pymicro-wakeword`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/pymicro_wakeword/microwakeword.py b/pymicro_wakeword/microwakeword.py
index 7182bfb..f22d9ac 100644
--- a/pymicro_wakeword/microwakeword.py
+++ b/pymicro_wakeword/microwakeword.py
@@ -1,4 +1,5 @@
 import ctypes
+import ctypes.util
 import json
 import logging
 import statistics
@@ -18,6 +19,7 @@ _REPO_DIR = _DIR.parent
 _MODULE_LIB_DIR = _DIR / "lib"
 _REPO_LIB_DIR = _REPO_DIR / "lib"
 _MODELS_DIR = _DIR / "models"
+_SYSTEM_TENSORFLOW_LITE = "tensorflow-lite"
 
 _LOGGER = logging.getLogger(__name__)
 
@@ -175,6 +177,11 @@ class MicroWakeWord(TfLiteWakeWord):
                     iter(lib_dir.glob("*tensorflowlite_c.*")), None
                 )
 
+            if not libtensorflowlite_c_path:
+                libtensorflowlite_c_path = ctypes.util.find_library(
+                    _SYSTEM_TENSORFLOW_LITE
+                )
+
             if not libtensorflowlite_c_path:
                 raise ValueError("Failed to find tensorflowlite_c library")
 
diff --git a/pymicro_wakeword/wakeword.py b/pymicro_wakeword/wakeword.py
index 34d3937..046b3f3 100644
--- a/pymicro_wakeword/wakeword.py
+++ b/pymicro_wakeword/wakeword.py
@@ -27,7 +27,13 @@ def _not_null(result, func, args):
 
 class TfLiteWakeWord:
     def __init__(self, libtensorflowlite_c_path: Union[str, Path]):
-        self.libtensorflowlite_c_path = Path(libtensorflowlite_c_path).resolve()
+        libtensorflowlite_c_path = os.fspath(libtensorflowlite_c_path)
+        if os.path.dirname(libtensorflowlite_c_path):
+            self.libtensorflowlite_c_path: Union[str, Path] = Path(
+                libtensorflowlite_c_path
+            ).resolve()
+        else:
+            self.libtensorflowlite_c_path = libtensorflowlite_c_path
 
         if sys.platform == "win32":
             self.lib = C.CDLL(str(self.libtensorflowlite_c_path))
diff --git a/pyproject.toml b/pyproject.toml
index 38e93cc..312de35 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -33,6 +33,9 @@ dependencies = [
 [project.urls]
 "Source Code" = "https://github.com/OHF-Voice/pymicro-wakeword"
 
+[project.scripts]
+pymicro-wakeword = "pymicro_wakeword.__main__:main"
+
 [tool.setuptools]
 platforms = ["any"]
 zip-safe  = false
