Source

pypy / dotviewer / graphclient.py

Diff from to

dotviewer/graphclient.py

             if msg[0] == msgstruct.MSG_OK:
                 break
     except EOFError:
-        ioerror = ioerror or IOError("connexion unexpectedly closed "
+        ioerror = ioerror or IOError("connection unexpectedly closed "
                                      "(graphserver crash?)")
     if ioerror is not None:
         raise ioerror
 
 def spawn_local_handler():
     if hasattr(sys, 'pypy_objspaceclass'):
-        python = 'python'
+        python = '/usr/bin/python'
     else:
         python = sys.executable
-    cmdline = '"%s" -u "%s" --stdio' % (python, GRAPHSERVER)
-    p = subprocess.Popen(cmdline,
+    args = [python, '-u', GRAPHSERVER, '--stdio']
+    p = subprocess.Popen(args,
                          stdout=subprocess.PIPE, stdin=subprocess.PIPE)
     child_in, child_out = p.stdin, p.stdout
     io = msgstruct.FileIO(child_out, child_in)