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

git-svn-id: svn://10.0.0.236/trunk@145401 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
mhammond%skippinet.com.au
2003-07-30 23:10:31 +00:00
parent dd18005a98
commit d85c11ee4d
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