~ubuntu-branches/ubuntu/hardy/mayavi2/hardy-backports

« back to all changes in this revision

Viewing changes to enthought.envisage/examples/apps/Simple_UI/plugin_definitions.py

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2008-07-25 09:03:34 UTC
  • mfrom: (2.2.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080725090334-1hbb9fn8b3as5qy0
Tags: 2.2.0-1~hardy1
Automated backport upload; no source changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
 
10
10
"""
11
11
 
 
12
from os.path import abspath, dirname, join
12
13
 
13
14
# Enthought library imports.
14
 
from enthought.envisage.api import join
15
 
 
16
 
# We use this package to find the absolute location of the plugin definition
17
 
# files.
18
 
from enthought import envisage
19
 
 
 
15
from enthought.envisage.api import find_definition
 
16
 
 
17
envisage_examples_dir = dirname(dirname(dirname(abspath(__file__))))
20
18
 
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'),
28
26
    
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'),
31
29
]
32
30
 
33
31
# The plugin definitions that we want to import from but don't want as part of