source: coopr.opt/trunk/coopr/opt/__init__.py @ 1900

Last change on this file since 1900 was 1900, checked in by wehart, 10 years ago

Bug fixes to account for the reorganization of coopr.opt

File size: 997 bytes
Line 
1#  _________________________________________________________________________
2#
3#  Coopr: A COmmon Optimization Python Repository
4#  Copyright (c) 2008 Sandia Corporation.
5#  This software is distributed under the BSD License.
6#  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
7#  the U.S. Government retains certain rights in this software.
8#  For more information, see the Coopr README.txt file.
9#  _________________________________________________________________________
10
11import pyutilib.plugin.core
12
13pyutilib.plugin.core.PluginGlobals.push_env( 'coopr.opt' )
14
15from base import *
16from results import *
17from colin import *
18import solver
19import reader
20from parallel import *
21
22pyutilib.plugin.core.PluginGlobals.pop_env()
23
24
25try:
26    import pkg_resources
27    #
28    # Load modules associated with Plugins that are defined in
29    # EGG files.
30    #
31    for entrypoint in pkg_resources.iter_entry_points('coopr.opt'):
32        plugin_class = entrypoint.load()
33except:
34    pass
35
Note: See TracBrowser for help on using the repository browser.