Skip to content

[Bug] Variables.Add ignores validator and converter if help and default weren't passed #4652

Closed Answered by mwichmann
dustdfg asked this question in Q&A
Discussion options

You must be logged in to vote

This didn't turn out to be what I expected. Remove the star import from Variables - the publicly exposed (from an SConscript viewpoint) Variables is a function in the main part of the program (SCons.Script), which instantiates the Variables class with appropriate defaults. The star import overwrites that function with the symbol (class name) from SCons.Variables, so you get the wrong one, and in fact, the Variables package doesn't end up seeing your command-line argument.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@dustdfg
Comment options

Comment options

You must be logged in to vote
1 reply
@dustdfg
Comment options

Answer selected by dustdfg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants