Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 02a3b9bc1f261442ced2bffc0adaa06a > files > 355

python-enthought-etsdevtools-3.0.3-2mdv2010.0.i586.rpm

#-------------------------------------------------------------------------------
#  
#  Starts the Envisage environment.
#  
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#  Imports:
#-------------------------------------------------------------------------------

import sys

from enthought.envisage.ui.workbench.api import WorkbenchApplication
from enthought.envisage.core_plugin import CorePlugin    
from enthought.envisage.ui.workbench.workbench_plugin import \
         WorkbenchPlugin
from enthought.plugins.python_shell.python_shell_plugin import \
         PythonShellPlugin

# Enthought developer tool plugins:
from enthought.developer.developer_plugin import EnthoughtDeveloperPlugin
from enthought.developer.tools.fbi_plugin import FBIPlugin
from enthought.developer.helper.fbi \
    import enable_fbi
    
#-------------------------------------------------------------------------------
#  Application entry point:
#-------------------------------------------------------------------------------

if __name__ == '__main__':
    
    # FIXME: Need to remove this. This is not necessary as the FBI plugin 
    # calls enable_fbi.
    # Allow the FBI to handle any exceptions that occur:
    # enable_fbi()

    # Create an Envisage application:
    application = WorkbenchApplication(
        plugins = [CorePlugin(), WorkbenchPlugin(), PythonShellPlugin(),
                   EnthoughtDeveloperPlugin(), 
                   FBIPlugin()
                   ],
        argv               = sys.argv,
        id                 = 'Enthought Developer Tools',
        requires_gui       = True
    )

    # Run the application
    application.run()