MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / pyimport

Method pyimport

python/engine/PythonEngine.cpp:70–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void PythonEngine::pyimport(const std::string& importName, const std::string& includePath) {
71 addToPythonPath(includePath);
72 PyImport_ImportModule(importName.c_str());
73}
74
75void PythonEngine::setupPythonPath(const std::vector<openstudio::path>& includeDirs) {
76

Callers

nothing calls this directly

Calls 1

addToPythonPathFunction · 0.85

Tested by

no test coverage detected