示例#1
0
文件: local.py 项目: ppalucki/shcms
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
示例#2
0
文件: local.py 项目: ppalucki/shcms
#    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)
示例#3
0
文件: tests.py 项目: ppalucki/shcms
 def test_edit_vars(self):        
     from wx.py.PyShell import main; main(dict(globals(), ** locals()))