Subproject object (
Subproject object objects are returned by the following functions and methods:
Subproject object methods
Returns whether the subproject was successfully setup.
fetches the specified variable from inside the subproject. This is useful to, for instance, get a from the subproject.
If the variable does not exist, the variable
fallback is returned.
If a fallback is not specified, then attempting to read a non-existing
variable will cause a fatal error.
# fetches the specified variable from inside the subproject get_variable( var_name, # The name of the variable to query [fallback], # The fallback value to return if `var_name` does not exist )
Argument flattening is NOT SUPPORTED by this function.
subproject.get_variable() accepts the following positional arguments:
The name of the variable to query
The fallback value to return if
The results of the search are