I'm having a bit of problem with the laa.execute function. The function appears to execute the application in a new thread.
For instance, in the below script, the intended functioning is that I call an application (uid1) and it verifies identity. If authentication is successful, the application writes "1" to a file (say c:\\auth.txt), and if not, it writes "0".
(the function readfile reads contents of a file - to reduce verbosity)
But the problem on running the code is, the script doesn't wait for laa.execute(uid1) to finish. It continues to read from the file, and performs actions based on the present contents of the file. Is there any way to ensure that laa.execute() does not start off a new thread?
txt = readfile(u"c:\\results.txt")
if (txt == u"1"):
I am aware that there are some workarounds - maybe delete the file beforehand (so that file exists only when uid1 is done), and put a try-except in an infinite while loop, but I was hoping for something more elegant.
Is there documentation available for laa extension somewhere?