There is a python command like pascal uo.exec('exec test()')
Code: Select all
def test2():
while True:
AddToSystemJournal("Test 2")
Wait(2000)
def test1():
while True:
AddToSystemJournal("Test 1")
Wait(2000)
def main():
Exec("test1") # something like this function
Exec("test2") # something like this function
Terminate("test1")
Terminate("test2")
if __name__ == '__main__':
main()