From e5e256039c94b9d193c057027cf8557c212739e3 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 19 Jun 2022 13:10:21 +0200 Subject: [PATCH] Init project structure --- .gitignore | 1 + fieldpoc/__init__.py | 1 + fieldpoc/dect.py | 9 +++++++++ fieldpoc/run.py | 11 +++++++++++ 4 files changed, 22 insertions(+) create mode 100644 .gitignore create mode 100644 fieldpoc/__init__.py create mode 100644 fieldpoc/dect.py create mode 100644 fieldpoc/run.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bee8a64 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ diff --git a/fieldpoc/__init__.py b/fieldpoc/__init__.py new file mode 100644 index 0000000..e5a0d9b --- /dev/null +++ b/fieldpoc/__init__.py @@ -0,0 +1 @@ +#!/usr/bin/env python3 diff --git a/fieldpoc/dect.py b/fieldpoc/dect.py new file mode 100644 index 0000000..d79c216 --- /dev/null +++ b/fieldpoc/dect.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python3 + +import mitel_ommclient2 +import time + +def run(): + while True: + print("meow") + time.sleep(2) diff --git a/fieldpoc/run.py b/fieldpoc/run.py new file mode 100644 index 0000000..9732ce8 --- /dev/null +++ b/fieldpoc/run.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python3 + +import threading + +from . import dect + +def run(): + threading.Thread(target=dect.run).start() + +if __name__ == "__main__": + run()