Hello everyone! I'd really appreciate it if someone could help me with this issue.
I have a customized python toolbox file (.pyt) and what I need to do is, from another module (.py), call a variable stored inside a function in that toolbox. Here's a quick overview of the .pyt file:
Validation.pyt
>class Validation(object):
>> def getParameterInfo(self):
>> def execute(self, parameters, messages):
>>> def check_geometry_poly(inputfile):
(...some code) error_count = x
I need to get the result from that error_count variable to use it in another script. I'm struggling with the fact that .pyt file doesn't seem to be callable like a normal .py module, where I would simply import Validation and call Validation.check_geometry_poly() to access the variable result.
Any ideas?
Thank you in advance!
C Castro