Hi everyone,
I would like to pass a custom variable to the conf.py so I can apply some logic rules within the conf.
(this is a simple example, I know I can do this with other option but i can expand this to do more beyond the scope of the question)
if branch_name == "master":
todo_include_todos = False
else:
todo_include_todos = True
tags.add("internal")
However, when I try to build, it fails with the error below.
The -D option (-D branch_name=develop) results in the same issue.
NameError: name 'branch_name' is not defined.
If I define the variable in the conf, there is no error but it isn't overwritten by the -D command
Anyone got any suggestions what I should do?
Thanks
Andy