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

Method getPythonModuleNameAndPath

Engine/Plugin.cpp:233–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected