I want to use the built-in variable ${OUTPUT DIR} in the variable file which is written in python.
test = 'test1'
log_file = ${OUTPUT DIR}/${test}/log.txt
I don't see any pointers about it in the official document. I could pre-process it by replacing the variables with the actual value in the file one by one to support variable substitution which would be done if variables written in the robot test file. But this ${OUTPUT DIR} has a space inside the name, thus python doesn't know how to handle it and end up a syntax error.
It's not a duplicate question as I want to use built-in variables in the variabel file which is loaded before test starts, It will cause error if I import Builtin module in the variable file, see Robotframework Listener throws "Cannot access execution context" error