Exemplo n.º 1
0
def pyshell():
    initstubs()
    from models import Album, Photo, Var, Page

    ### PUT CODE HERE
    # ...
    from tasks import update_photos

    update_photos()
    ### SHELL START!
    from wx.py.PyShell import main

    main(dict(globals(), **locals()))  # @UnresolvedImport
Exemplo n.º 2
0
#    httpserver.serve(app, host='127.0.0.1', port='8080')


def pyshell():
    initstubs()
    from models import Album, Photo, Var, Page

    ### PUT CODE HERE
    # ...
    from tasks import update_photos

    update_photos()
    ### SHELL START!
    from wx.py.PyShell import main

    main(dict(globals(), **locals()))  # @UnresolvedImport


if __name__ == "__main__":
    # Respond to requests until process is killed
    import sys

    if "-sh" in sys.argv:
        pyshell()
    elif "-nr" in sys.argv:
        main()
    else:
        import autoreload

        autoreload.main(main)
Exemplo n.º 3
0
 def test_edit_vars(self):        
     from wx.py.PyShell import main; main(dict(globals(), ** locals()))