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
# 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)
def test_edit_vars(self): from wx.py.PyShell import main; main(dict(globals(), ** locals()))