mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-05 05:30:29 +00:00
Tweak so it still builds with Python 2.2. Not part of the build.
This commit is contained in:
parent
83a77b7505
commit
0442069411
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user