Python File Resource

Description

A special type of resource file that contains Python source code.

The file is executed when the experiment loads. The execution takes place after all experiment-defined variables have been created, but before any other components are created. Therefore, the Python code can set variable values or perform additional initialization tasks, and other components can make use of the results.

Signature

resource/python_file

Required Parameters

path

Filesystem path to the Python source file

Placement

Allowed at top level: Yes
Allowed parent: Folder