# This is a sample Python script. import sys# # import jsonpickle # pip install jsonpickle import yaml # pip install pyyaml import basic.program from basic.componentHandling import ComponentManager import basic.message # import tools.tdata_tool as tdata_tool PROGRAM_NAME = "init_testset" def startPyJob(job): cm = basic.componentHandling.ComponentManager.getInstance(job) cm.initComponents() comps = cm.getComponents(PROGRAM_NAME) job.m.setMsg("# Components initialized with these relevant components " + str(comps)) #testdata = tdata_tool.getTestdata(job) if __name__ == '__main__': x = basic.program.Job(PROGRAM_NAME) x.startJob() x.m.logInfo("hier eine LogInfo") x.m.logDebug("hier eine DbugMeldung") x.m.logDebug(str(vars(x.par)) + "\n" + str(vars(x.conf))) if x.m.isRc("fatal"): print("fatal Error at begin") x.stopJob() exit(x.m.rc * (-1) + 3) startPyJob(x) x.stopJob() # See PyCharm help at https://www.jetbrains.com/help/pycharm/