import_plugin(plugin_paths,
cat,
longcat,
longcat2,
listopt,
preset)
| source code
|
import a plugin making it visible
Example:
>>> Language = import_plugin(get_plugin_paths(), "lang", "language", "languages", "--list-languages", "EN")
- Parameters:
plugin_paths - list of plugin search paths
cat - short category name (for folder name)
longcat - long category name
longcat2 - long category name in plural form
listopt - option name
preset - default value
- Returns: module
Note:
Aimed for internal use with lang, style, geom,
layouts.
|