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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user