Ejemplo n.º 1
0
import matplotlib
print "PyQt4 version: ", QtCore.qVersion()
print "matplotlib version: ", matplotlib.__version__

splash = QtGui.QSplashScreen(resourceImage("splash"),
                             QtCore.Qt.WindowStaysOnTopHint)
splash.show()
splash.showMessage("Starting up...", color=QtCore.Qt.white)
app.processEvents()

window = Application()

splash.showMessage("Bootstrapping...", color=QtCore.Qt.white)
app.processEvents()

ert = ErtWrapper()
strict = True
site_config = os.getenv("ERT_SITE_CONFIG")
if len(sys.argv) == 1:
    print "-----------------------------------------------------------------"
    print "-- You must supply the name of configuration file as the first --"
    print "-- commandline argument:                                       --"
    print "--                                                             --"
    print "-- bash%  gert <config_file>                                   --"
    print "--                                                             --"
    print "-- If the configuration file does not exist, gert will create  --"
    print "-- create a new configuration file.                            --"
    print "-----------------------------------------------------------------"
    sys.exit()

enkf_config = sys.argv[1]