I tested the template function: def SetParam1 ((p1)): global param1 param1 is equal to p1.
def GetParam1(): Log(“param1:”, param1) return param1
ext.SetParam1 = SetParam1 ext.GetParam1 = GetParam1
The results were wrong:
Traceback (most recent call last): File “<string>”, line 1606, in Run File “<string>”, line 10, in <module> File “<string>”, line 2, in main AttributeError: ‘i1Iii1i1I’ object has no attribute ‘GetParam1’
I asked, why is this?
The Little DreamYou don't have a main function, how can you get an error in the main function?
ooorrrgggThat's good.
The Little DreamCheck if, referring to the policy for this template, this template option is not selected.
ooorrrgggThat's good.