| Reference | Downloads | Github

Bug in v3.22 when compiling path delimiters under Linux

In a stimulus component, when I specify the path to an image in a subdirectory (e.g. stimuli/myimage.png) with a forward slash as the path delimiter as required under Linux, the experiment crashes.

The error message in the output window looks like
"OSError: Couldn’t find image stimuli\myimage.png; check path? (tried: /home/…/stimuli\myimage.png)

Compiling the builder script and looking at the result in coder I find that the forward slash has been converted to a double backslash. After editing this to replace the two backshlashes with a single forward slash the python script works.