2.3. Modules

The Modules directory of a package contains all files that MeVisLab needs to know at runtime (*.def, *.script, *.mlab, *.py, etc.).

Shared Libraries (DLLs) are stored in a lib directory.

A typical sub-structure is

In the Scripts directory, there is typically a python directory where you can store shared Python code. The import statements of a module's Python code searches in this directory for the Python module to import.

You can also set additional Python import paths in your module's Commands-section in the .script file.

Commands {
  importPath = $(LOCAL)/Python/
  source = $(LOCAL)/MyModule.py		  
}

This sets an additional import path to a Python directory that is located relative to the module's definition.

You can have multiple importPath statements in the Commands-section.