Preset Values

When a plugin is initialized the dictionary PlugInName is created in the plugin module's namespace. It contains the following items:

 
   'name' - the name of the plugin. The case of the containing
directory is preserved

   'dir'  - the name of the directory containing the plugin. For
example:  /home/bob/MMA/plugins

   'path' - a complete path entry to the plugin. For example:
/home/bob/MMA/plugins/hello/plugin.py

   'cmd'  - the registered command name. For example, @HELLO

You can access any of these values in your module using the notation:

 
    zz = plugInName['name']