Files
esp-base/pndBase.py
2025-10-30 01:45:38 +00:00

27 lines
895 B
Python

## this is the Basic Implementation
## of the pnd Framework
## It should provide Insights
## to the usage and configuration
import 'pg26/pnd.py' as Services
import 'pg26/pndSRC.py' as Backend #not needet Just tobshiw all involved modules
import 'pg26/pndCFG' as Config
ServiceRuntime = Services.rt() #RuntimeObject
print(Config.gc_name) # print Name of current configuration
# initialize the runtime context object
ServiceRuntime.init(0) # the passed 0 as integer is internaly used as "lastTry" Parameter for the exception handling
# the Implementation will provide at least
# the following methods
# run() <this is the Main method wich has the defined Loop
# aswell as selfhealing exception handling
# BackgroundTask() < this method is meant as it's Name suggest: do Background Work
import Threads
secondThread = Threads.Run(ServiceRuntime.BackgroundTask, ())
ServiceRuntime.run()