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

Function getDefaultOcioConfigPaths

Engine/Settings.cpp:90–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90static QStringList
91getDefaultOcioConfigPaths()
92{
93 QString binaryPath = appPTR->getApplicationBinaryPath();
94 StrUtils::ensureLastPathSeparator(binaryPath);
95
96#ifdef __NATRON_LINUX__
97 QStringList ret;
98 ret.push_back( QString::fromUtf8("/usr/share/OpenColorIO-Configs") );
99 ret.push_back( QString( binaryPath + QString::fromUtf8("../share/OpenColorIO-Configs") ) );
100 ret.push_back( QString( binaryPath + QString::fromUtf8("../Resources/OpenColorIO-Configs") ) );
101
102 return ret;
103#elif defined(__NATRON_WIN32__)
104
105 return QStringList( QString( binaryPath + QString::fromUtf8("../Resources/OpenColorIO-Configs") ) );
106#elif defined(__NATRON_OSX__)
107
108 return QStringList( QString( binaryPath + QString::fromUtf8("../Resources/OpenColorIO-Configs") ) );
109#endif
110}
111
112void
113Settings::initializeKnobs()

Callers 2

Calls 3

QStringListClass · 0.85
QStringClass · 0.70
push_backMethod · 0.45

Tested by

no test coverage detected