Using Script Libraries
If you decide that you need base classes, additional data files, and etc., to organize your UDOs better, you can do so. This type of library organization allows code reuse between similar UDOs and can be very helpful. There is special support provided for this type of script-library organization:
- All script-library and other support files need to be in a Lib sub-directory under the UserDefinedOutputs directory. Any .py files found in such Lib directories are ignored and not displayed in the GUI as a valid UDO choice.
- For a UDO script at any given directory depth, all Lib directories in its parent directories will be automatically added to the system include path (and so, any support script files from any Lib directory through the top level UserDefinedOutputs directory can be imported).