summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/birdscan/__init__.py8
-rw-r--r--python/birdscan/__main__.py18
2 files changed, 23 insertions, 3 deletions
diff --git a/python/birdscan/__init__.py b/python/birdscan/__init__.py
index e69de29..fe911a9 100644
--- a/python/birdscan/__init__.py
+++ b/python/birdscan/__init__.py
@@ -0,0 +1,8 @@
+
+
+"""birdscan
+
+This package is part of the birdscan software (https://xengineering.eu).
+The birdscan python package contains all the necessary code for its main
+module which is responsible for image capturing and live processing.
+"""
diff --git a/python/birdscan/__main__.py b/python/birdscan/__main__.py
index 34eb665..a25dee2 100644
--- a/python/birdscan/__main__.py
+++ b/python/birdscan/__main__.py
@@ -2,10 +2,22 @@
# vim: shiftwidth=4 tabstop=4 expandtab
+"""__main__.py
+
+This is the main executable of the birdscan package.
+"""
+
+
import time
-while True:
- print("Active!")
- time.sleep(2)
+def main():
+ """Main function of this module"""
+
+ while True:
+ print("Active!")
+ time.sleep(1)
+
+if __name__ == "__main__":
+ main()