github.com/mcuadros/ascode@v1.3.1/starlark/types/testdata/examples/evaluate.star (about) 1 # Evaluate execute the given file, with the given context, in this case `foo` 2 values = evaluate("evaluable.star", foo="foo") 3 4 # The context it's a module, in this case contains the key `bar` 5 print("Print from main: '%s'" % values.bar) 6 7 # Output: 8 # Print from evaluable.star: 'foo' 9 # Print from main: 'bar'