Tweak so it still builds with Python 2.2. Not part of the build.

This commit is contained in:
mhammond%skippinet.com.au 2003-07-30 23:10:31 +00:00
parent 83a77b7505
commit 0442069411
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ void AddStandardPaths()
// And now try and get Python to process this directory as a "site dir"
// - ie, look for .pth files, etc
nsCAutoString cmdBuf(NS_LITERAL_CSTRING("import site;site.addsitedir(r'") + pathCBuf + NS_LITERAL_CSTRING("')\n"));
if (0 != PyRun_SimpleString(cmdBuf.get())) {
if (0 != PyRun_SimpleString((char *)cmdBuf.get())) {
LogError("The directory '%s' could not be added as a site directory", pathCBuf.get());
PyErr_Clear();
}

View File

@ -53,7 +53,7 @@ extern void AddDefaultGateway(PyObject *instance, nsISupports *gateway);
#define LOADER_LINKS_WITH_PYTHON
#ifndef LOADER_LINKS_WITH_PYTHON
#ifndef PYXPCOM_USE_PYGILSTATE
extern void PyXPCOM_InterpreterState_Ensure();
#endif