In my QGIS plugin I want to get the path of my plugin. As yet I done this so:
QDir appDir=QDir(QCoreApplication::applicationDirPath()); appDir.cdUp(); QString sPluginFile=appDir.path()+"/apps/qgis/plugins/plugin.dll";
Since QGIS LTR sometimes the plugin.dll is located at
so my code above is not working anymore. Has anobody an idea how to get the path from where QGIS my plugin has loaded?