Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > contrib-backports > by-pkgid > 5a28ce08f20e322d24ac159a4334c346 > files > 2354

python-enthought-mayavi2-2.2.0-1mdv2008.1.x86_64.rpm

""" The absolute filenames of the plugin definitions used in the application.

The only reason that we put this in a separate module is that it often entails
lots of path and filename manipulation code that tends to clutter up 'run.py'.

The important thing to realise is that all we are doing is defining a list of
strings which are the absolute filenames of the plugin definition used in the
application!

"""

from os.path import abspath, dirname, join

# Enthought library imports.
from enthought.envisage.api import find_definition

envisage_examples_dir = dirname(dirname(dirname(abspath(__file__))))

# The plugin definitions required by the application.
PLUGIN_DEFINITIONS = [
    # Envisage plugins.
    find_definition('enthought.envisage.core.core_plugin_definition'),
    
    # Application plugins.
    join(envisage_examples_dir, 'plugin','message','plugin_definition.py'),
    join(envisage_examples_dir, 'plugin','hello_world','plugin_definition.py')
]

#### EOF ######################################################################