MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / addPythonPath

Method addPythonPath

src/Base/Interpreter.cpp:537–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

535}
536
537void InterpreterSingleton::addPythonPath(const char* Path)
538{
539 PyGILStateLocker locker;
540 Py::List list(PySys_GetObject("path"));
541 list.append(Py::String(Path));
542}
543
544std::string InterpreterSingleton::getPythonPath()
545{

Callers 2

processProgramOptionsFunction · 0.80
processFilesMethod · 0.80

Calls 2

StringClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected