pytuflow.Scope.resolve_scope#
- static Scope.resolve_scope(req_scope_list, var_string, compare_string, test_scopes)#
Resolve scope names from a list of scopes and a string to compare to.
Allows the user to give a list of scope names to try and help resolve scope names. This still requires a template string to compare to and the scope names must be in the list that is passed in. The routine simply goes through every permutation of the known scope names and then compares the result to the input string for a match.
- Parameters:
req_scope_list (ScopeList) – a list of scope names that are unknown
var_string (str) – the template string that contains the variable names in it
compare_string (str) – the completed/resolved string to compare to
test_scopes (ScopeList) – a list of scope names that are known