For example, on debian/ubuntu, the site module defines that dist-packages from easy_install are located in /usr/local/lib/pythonX.Y rather than in /usr/lib/pythonX.Y where all the other python files are installed.
@@ -100,6 +100,8 @@ void ctkAbstractPythonManager::initPythonQt()
initCode << QString("sys.path.append('%1')").arg(QDir::fromNativeSeparators(path));
}
+ initCode << QString("import site");
+
_mainContext.evalScript(initCode.join("\n"));
this->preInitialization();