Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 436536 | Differences between
and this patch

Collapse All | Expand All

(-)a/plugins/python/python.c (-1 / +2 lines)
Lines 1128-1133 Plugin_New(char *filename, PyMethodDef *xchat_methods, PyObject *xcoobj) Link Here
1128
	}
1128
	}
1129
1129
1130
	PySys_SetArgv(1, argv);
1130
	PySys_SetArgv(1, argv);
1131
	PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)");
1131
	PySys_SetObject("__plugin__", (PyObject *) plugin);
1132
	PySys_SetObject("__plugin__", (PyObject *) plugin);
1132
1133
1133
	/* Set stdout and stderr to xchatout. */
1134
	/* Set stdout and stderr to xchatout. */
Lines 2150-2155 xchat_plugin_init(xchat_plugin *plugin_handle, Link Here
2150
	Py_SetProgramName("xchat");
2151
	Py_SetProgramName("xchat");
2151
	Py_Initialize();
2152
	Py_Initialize();
2152
	PySys_SetArgv(1, argv);
2153
	PySys_SetArgv(1, argv);
2154
	PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)");
2153
2155
2154
	Plugin_Type.ob_type = &PyType_Type;
2156
	Plugin_Type.ob_type = &PyType_Type;
2155
	Context_Type.ob_type = &PyType_Type;
2157
	Context_Type.ob_type = &PyType_Type;
2156
- 

Return to bug 436536