psychopy.org | Reference | Downloads | Github

Coder is not rewriting script

I did my experiment in Builder and now i want to make some changes in code, but when i click Compile to script and i change the code in Coder and save it, it is still the old one. Shouldn’t Coder function this way and change it or am I doing something wrong?

Hi @Filipp, Builder will overwrite the generated code each time you compile the script. If you want to add some custom code, you should add a code component to your Builder experiment, so that each code change in your code component will then be compiled to the Python script which can be viewed in Coder. Alternatively, compile your script, then save it under a different name from the Builder generated script, and you can change the code without it being overwritten.

thank you