I am working on a SConstruct assembly file for a project, and I am trying to update it from Options to Variables, since the options are deprecated. However, I do not understand how to use variables. I have 0 python experiences that probably contribute to this.
For example, I have this:
opts = Variables()
opts.Add('fcgi',0)
print opts['fcgi']
But I get an error message:
AttributeError: Variables instance has no attribute '__getitem__':
Not sure how it should work
Geuis source
share