[ScriptInterpreter] Remove a warning and reformat comments.
llvm-svn: 356819
This commit is contained in:
parent
e1cd11d80f
commit
4f9cb26063
|
@ -176,15 +176,15 @@ private:
|
||||||
static char g_python_home[] = LLDB_PYTHON_HOME;
|
static char g_python_home[] = LLDB_PYTHON_HOME;
|
||||||
#endif
|
#endif
|
||||||
Py_SetPythonHome(g_python_home);
|
Py_SetPythonHome(g_python_home);
|
||||||
#endif
|
|
||||||
#else
|
#else
|
||||||
#if defined(__APPLE__) && PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 7
|
#if defined(__APPLE__) && PY_MAJOR_VERSION == 2 && PY_MINOR_VERSION == 7
|
||||||
// For Darwin, the only Python version supported is the one shipped in the OS
|
// For Darwin, the only Python version supported is the one shipped in the OS
|
||||||
// and linked with lldb. Other installation of Python may have higher priorities
|
// OS and linked with lldb. Other installation of Python may have higher
|
||||||
// in the path, overriding PYTHONHOME and causing problems/incompatibilities.
|
// priorities in the path, overriding PYTHONHOME and causing
|
||||||
// In order to avoid confusion, always hardcode the PythonHome to be right,
|
// problems/incompatibilities. In order to avoid confusion, always hardcode
|
||||||
// as it's not going to change.
|
// the PythonHome to be right, as it's not going to change.
|
||||||
Py_SetPythonHome("/System/Library/Frameworks/Python.framework/Versions/2.7");
|
char path[] = "/System/Library/Frameworks/Python.framework/Versions/2.7";
|
||||||
|
Py_SetPythonHome(path);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue