MCPcopy Create free account
hub / github.com/MrKepzie/Natron / getPythonModuleNameAndPath

Method getPythonModuleNameAndPath

Engine/Plugin.cpp:230–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void
231Plugin::getPythonModuleNameAndPath(QString* moduleName,
232 QString* modulePath) const
233{
234 int foundLastSlash = _pythonModule.lastIndexOf( QLatin1Char('/') );
235
236 if (foundLastSlash != -1) {
237 *modulePath = _pythonModule.mid(0, foundLastSlash + 1);
238 *moduleName = _pythonModule.mid(foundLastSlash + 1);
239 } else {
240 *moduleName = _pythonModule;
241 }
242}
243
244void
245Plugin::setOfxPlugin(OFX::Host::ImageEffect::ImageEffectPlugin* p)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected