[solved] Python scripts not running
Hello, i've got the following problem:
When setting up a opensesame project, the "run" code of a python script is never executed. When placing the script inside a loop neither the "prepare" and the "run" parts of the scripts are executed.
Why does it behaves like this?
Comments
Hi,
There may be something wrong with the run-if setting of your inline_script item. Could you verify that it is set to 'run always'? (And you probably want to place the script in a sequence and place that sequence in a loop, rather than directly placing your script in a loop. Have a look at one of the tutorials if this is unclear to you).
Cheers,
Josh
Script is set to 'always' and is located under an sequence which is under the loop. I tested with 1) a new experiment 2) another computer 3) inside and outside a loop. With condition number 3) the behavior is different.
Problem is solved. Python code was running but a change of a member in var was not displayed in the sketch.