Hello,I am setting up a geoprocessing tool based on a Python script and need to implement some fairly complex logic in the ToolValidator class. I have already created another module/script that includes this logic, and would like to use it in the ToolValidator class.I am trying to import the script by:sys.path.append('my_script_dir')
import my_script
However, as soon as I try to save changes in the ToolValidator, I am hit with a runtime error: [Errno 9] Bad file descriptor. If I comment out the import statement, no error occurs when I apply changes.Does anyone know how I can import a custom (non-installed) script into the ToolValidator class?