Closed baptistesion closed 1 year ago
Hi,
Did I miss something in the documentation?
I believe we didn't document this behavior. pyRunScript
effectively calls ipcBeginProcess(...)
. That is a non-blocking operation, so the python script will run in the background.
You can however explicitly wait for the process to finish by using ipcWait
. So in your case:
(ipcWait (pyRunScript "test.py"))
println("end ")
should do the trick.
@TM90 maybe we should document this, or add a block
flag to pyRunScript
?
It could look like this: pyRunScript("test.py" ?block t)
Okay, thanks for the response! Regards,
@TM90 maybe we should document this, or add a
block
flag topyRunScript
?It could look like this:
pyRunScript("test.py" ?block t)
I think adding the block flag would be a good addition
Hello, first of all I want to thanks you for this amazing tool. Then here is my issue, I am working on converting some old skill code into python so I have to do it part by part. Hence, I'm working with the direct mode and I'm calling with pyRunScript a python script in the middle of other skill instruction. what seems to happened is that the python scripts is ended after other skill instruction that where after the pyRunScript instruction. For a simple example with this code skill:
And the test.py code :
The output that I get with that one is :
while the expected output would be :
Did I miss something in the documentation? or is there something that I can do to "force" the execution of the python script before the end of the skill script?
Best regards,