12
from os.path import abspath, dirname, join
13
14
# Enthought library imports.
14
from enthought.envisage.api import join
16
# We use this package to find the absolute location of the plugin definition
18
from enthought import envisage
15
from enthought.envisage.api import find_definition
17
envisage_examples_dir = dirname(dirname(dirname(abspath(__file__))))
21
19
# The plugin definitions required by the application.
22
20
PLUGIN_DEFINITIONS = [
23
21
# Envisage plugins.
24
join(envisage, 'core/core_plugin_definition.py'),
25
join(envisage, 'ui/ui_plugin_definition.py'),
26
join(envisage, 'ui/preference/preference_plugin_definition.py'),
27
join(envisage, 'ui/python_shell/python_shell_plugin_definition.py'),
22
find_definition('enthought.envisage.core.core_plugin_definition'),
23
find_definition('enthought.envisage.ui.ui_plugin_definition'),
24
find_definition('enthought.envisage.ui.preference.preference_plugin_definition'),
25
find_definition('enthought.envisage.ui.python_shell.python_shell_plugin_definition'),
29
27
# Application plugins.
30
join(envisage, 'examples/plugin/simple_ui/plugin_definition.py'),
28
join(envisage_examples_dir, 'plugin','simple_ui','plugin_definition.py'),
33
31
# The plugin definitions that we want to import from but don't want as part of