From 6ef0a343c896e171455adc5a2587d5ad6608404e Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Wed, 16 Nov 2016 13:50:13 +0100 Subject: [PATCH] Move files to a module --- telematrix.py | 4 ++++ app_service.py => telematrix/__init__.py | 2 +- database.py => telematrix/database.py | 0 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 telematrix.py rename app_service.py => telematrix/__init__.py (99%) rename database.py => telematrix/database.py (100%) diff --git a/telematrix.py b/telematrix.py new file mode 100644 index 0000000..6193533 --- /dev/null +++ b/telematrix.py @@ -0,0 +1,4 @@ +import telematrix + +if __name__ == '__main__': + telematrix.main() diff --git a/app_service.py b/telematrix/__init__.py similarity index 99% rename from app_service.py rename to telematrix/__init__.py index b14d330..7ad7953 100644 --- a/app_service.py +++ b/telematrix/__init__.py @@ -16,7 +16,7 @@ from aiohttp import web, ClientSession from aiotg import Bot from bs4 import BeautifulSoup -import database as db +import telematrix.database as db # Read the configuration file try: diff --git a/database.py b/telematrix/database.py similarity index 100% rename from database.py rename to telematrix/database.py