as a simplification of my problem, I created an external file test.py with the following code:
n = aaa if n <= 5: n += 1 else: n += 2
meanwhile, inside the Ironpython script in dynamo I have:
import sys import clr clr.AddReference('ProtoGeometry') from Autodesk.DesignScript.Geometry import * sys.path.append("C:\\Users\\.....") # test.py location aaa = IN from test import * OUT = n
and the error is
global name “aaa” is not defined, beacuse inside test.py it’s not.
And now the question: is there a way to make the variable aaa readable in test.py?
Thanks in advance!