Example #1
0
def start():
    
    import garlicsim
    import garlicsim_wx
    
    if use_psyco:
        psyco.full()
    garlicsim_wx.start()
Example #2
0
def start():
    '''Start the GUI.'''
    
    import garlicsim
    import garlicsim_wx
    
    if use_psyco:
        psyco.full()
    garlicsim_wx.start()
Example #3
0

# "Almost importing" entire Python standard library, so it will all get
# packaged with `py2exe`:
if False:
    # The `if False` is important here, even though `almost_import_stdlib`
    # already has one wrapping it inside, because `almost_import_stdlib.py`
    # won't get packaged at all with py2exe, so trying to import it will raise
    # an `ImportError`.
    import almost_import_stdlib


use_psyco = False
if not ('--psyco=off' in sys.argv):
    try:
        import psyco
        use_psyco = True
    except ImportError:
        pass
    
    
if __name__ == '__main__':
    multiprocessing.freeze_support()
    
    import garlicsim
    import garlicsim_wx
    
    if use_psyco:
        psyco.full()
    garlicsim_wx.start()