Skip to content

UnknownVariables doesn't return unknown variables defined in files #4645

@dustdfg

Description

@dustdfg

Running scons will print {}, while running scons my_var="cli_value" will print {'my_var': 'cli_value'}

#custom.py
my_var="value"
import SCons
from SCons.Variables import *

env = Environment()

options = Variables(["custom.py"], ARGUMENTS)
options.Add("my_option", "", "")

options.Update(env)

print(options.UnknownVariables())

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions