def dispatch_script(msg, ses): # print("leoremote.py: dispatch script", msg) fd, pth = tempfile.mkstemp(suffix='.py') f = os.fdopen(fd, "w") f.write(msg) f.close() # first run if 'pydict' not in ses: ses['pydict'] = {'g': g} # print("run file",pth) d = ses['pydict'] g.exec_file(pth, d)
def dispatch_script(msg, ses): # print("leoremote.py: dispatch script", msg) fd, pth = tempfile.mkstemp(suffix='.py') f = os.fdopen(fd,"w") f.write(msg) f.close() # first run if 'pydict' not in ses: ses['pydict'] = {'g' : g } # print("run file",pth) d = ses['pydict'] g.exec_file(pth, d)
def run_remote_script(fname): # c and p are ambiguous for remote script print("rrs") d = {'g': g} g.exec_file(fname, d)
def run_remote_script(fname): # c and p are ambiguous for remote script print("rrs") d = {'g': g } g.exec_file(fname, d)