Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
def run_remote_script(fname):

    # c and p are ambiguous for remote script
    print("rrs")
    d = {'g': g}
    g.exec_file(fname, d)
Beispiel #4
0
def run_remote_script(fname):

    # c and p are ambiguous for remote script
    print("rrs")
    d = {'g': g }
    g.exec_file(fname, d)