bootstrap.py

Go to the documentation of this file.
00001 # Bootstrap system to get a Manager
00002 
00003 import os
00004 import sys
00005 
00006 # Check that we are running an appropriate version of Ganga.
00007 try:
00008     import Ganga.GPI
00009 except ImportError:
00010     print "Cannot access Ganga GPI.  Is this script being run with Ganga?"
00011     sys.exit(1)
00012 
00013 
00014 import GBSConfig        # That gets the configuration Singleton up and running
00015 import register_models  # That sets up the models
00016 
00017 #  Create a Singleton Manager and provide a getter
00018 
00019 import GBSModelRegistry
00020 
00021 __manager = GBSModelRegistry.GetModelRegistry().CreateObject("default","Manager","Manager",None)
00022 def GetManager() : return __manager
00023 
00024 #  Give user access to Manager and logger threshold control.
00025 
00026 from GBSLogger import GetLoggerThreshold,SetLoggerThreshold,logger
00027 
00028 print "GBS version V01-16-05"

Generated on Fri Mar 5 09:25:41 2010 for gbs by  doxygen 1.4.7