From ace35c20c96ca737886328e4a035308ac1da44c1 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 10 Jun 2021 14:23:31 +0200 Subject: Update Python Code and Documentation --- python/birdscan/__init__.py | 8 ++++++++ python/birdscan/__main__.py | 18 +++++++++++++++--- 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() -- cgit v1.2.3-70-g09d2