Example #1
0
def _run_gui(lhc_mode=None, match_path=None, input_dir=None):
    try:
        from gui import gui
    except ImportError:
        print "Cannot start GUI using the current Python installation."
        print "Launching OMC Anaconda Python..."
        _run_gui_anaconda()
        return
    gui.main(lhc_mode, match_path, input_dir)
def _run_gui(lhc_mode=None, match_path=None, input_dir=None):
    try:
        from gui import gui
    except ImportError as e:
        LOGGER.debug("ImportError importing GUI", exc_info=1)
        LOGGER.info("Cannot start GUI using the current Python installation:")
        LOGGER.info(str(e))
        LOGGER.info("Launching OMC Anaconda Python...")
        _run_gui_anaconda()
        return
    gui.main(lhc_mode, match_path, input_dir)
Example #3
0
import optparse
import sys

from gui import gui


if __name__ == '__main__':
    parser = optparse.OptionParser()
    parser.add_option("-t", "--test", action="store_true")
    options, args = parser.parse_args()
    #This needs to be done to make sure unittest doesn't break
    del sys.argv[1:]

    if options.test:
        gui.test()
    else:
        gui.main()

Example #4
0
import sys
sys.path.append('./gui')
sys.path.append('/home/eliasthunderdog/playground/hackathon/Lockapp')
from gui import gui

gui.main()
Example #5
0
import gui.gui as Gui

Gui.main()