MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / toPythonHome

Function toPythonHome

Source/ScriptModule.cpp:158–158  ·  view source on GitHub ↗

Py_SetPythonHome()'s signature varies depending on Python version. This converts to the string type we need.

Source from the content-addressed store, hash-verified

156{
157 // Py_SetPythonHome()'s signature varies depending on Python version. This converts to the string type we need.
158 std::string toPythonHome(const std::string& s, void (*)(char*)) { return s; }
159 std::wstring toPythonHome(const std::string& s, void (*)(const wchar_t*)) { return juce::String{ s }.toWideCharPointer(); }
160}
161

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected