aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-06-21 22:05:20 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-06-21 22:05:20 +0200
commit308294fd65f5a830b37f7fe1829dc35dc6d309fe (patch)
tree0385c8094ad8f44e6265dfc74c43429cd027bfb0
parent0dd00ebddc1835afdd3f08c1f6b030b6b7164996 (diff)
downloadautomato-308294fd65f5a830b37f7fe1829dc35dc6d309fe.tar.gz
python module restructure
-rw-r--r--automato/endpoint/__init__.py (renamed from automato/endpoint.py)2
-rw-r--r--automato/state/__init__.py (renamed from automato/state.py)2
-rw-r--r--automato/transport/__init__.py (renamed from automato/transport.py)0
-rw-r--r--automato/trigger/__init__.py (renamed from automato/trigger.py)6
4 files changed, 6 insertions, 4 deletions
diff --git a/automato/endpoint.py b/automato/endpoint/__init__.py
index c1abe4e..770c8fa 100644
--- a/automato/endpoint.py
+++ b/automato/endpoint/__init__.py
@@ -1,7 +1,7 @@
import logging
logger = logging.getLogger(__name__)
-from . import transport
+from automato import transport
def import_class(cl):
d = cl.rfind(".")
diff --git a/automato/state.py b/automato/state/__init__.py
index 5d2789c..bbcb653 100644
--- a/automato/state.py
+++ b/automato/state/__init__.py
@@ -2,7 +2,7 @@ import time
import logging
logger = logging.getLogger(__name__)
-from . import transport
+from automato import transport
'''
Implementations of State:
diff --git a/automato/transport.py b/automato/transport/__init__.py
index e5fd653..e5fd653 100644
--- a/automato/transport.py
+++ b/automato/transport/__init__.py
diff --git a/automato/trigger.py b/automato/trigger/__init__.py
index 7acb100..a4b3213 100644
--- a/automato/trigger.py
+++ b/automato/trigger/__init__.py
@@ -4,8 +4,10 @@ import time
import logging
logger = logging.getLogger(__name__)
-from . import endpoint
-from . import misc
+from automato import endpoint
+from automato import misc
+
+
'''
Implementations of Trigger: