You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d53407a
Browse filesBrowse the repository at this point in the historyBrowse files
PythonInterpreter: now runs with XmlRpc over pipe (required a few important bug fixes, but still potentially fragile if a spawned python process or C extension generates stdout/stderr on the pipe). Will add option to switch back to a regular IP connection
Copy file name to clipboardExpand all lines: PythonInterpreter/PythonInterpCtrl.cpp
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -211,11 +211,11 @@ long PythonInterpCtrl::LaunchProcess(const wxString &processcmd, const wxArraySt
211
211
{
212
212
if(!IsDead())
213
213
return -1;
214
-
//TODO: Option to use XMLRPC over localhost or pipe, currently always use localhost
215
-
m_port=m_portalloc.RequestPort();
216
-
if(m_port<0)
217
-
return -1;
218
-
// m_port = -1; //Use XmlRpc over pipe
214
+
//TODO: Option to use XMLRPC over localhost or pipe, currently always use pipe
215
+
// m_port=m_portalloc.RequestPort(); //TODO: Request port limited to 3 ports
216
+
// if(m_port<0)
217
+
// return -1;
218
+
m_port = -1; //Use XmlRpc over pipe
219
219
//TODO: get the command and working dir from config
220
220
#ifdef __WXMSW__
221
221
// wxString cmd=_T("cmd /c interp.py ")+wxString::Format(_T(" %i"),m_port); //TODO: this could have process destruction issues on earlier version of wxWidgets (kills cmd, but not python)
0 commit comments