Mercurial > hg > svcore
comparison base/HelperExecPath.cpp @ 1782:2a810ed46977
Lib dir name is usually the same as the binary name, not the formal application name
author | Chris Cannam |
---|---|
date | Tue, 17 Sep 2019 09:28:27 +0100 |
parents | 008e413f6aaf |
children | cf3eb6252f42 |
comparison
equal
deleted
inserted
replaced
1781:008e413f6aaf | 1782:2a810ed46977 |
---|---|
70 // | 70 // |
71 // 4. in <mydir> | 71 // 4. in <mydir> |
72 | 72 |
73 QStringList dirs; | 73 QStringList dirs; |
74 QString appName = QCoreApplication::applicationName(); | 74 QString appName = QCoreApplication::applicationName(); |
75 QString binaryName = QCoreApplication::arguments().at(0); | |
75 QString myDir = QCoreApplication::applicationDirPath(); | 76 QString myDir = QCoreApplication::applicationDirPath(); |
76 #ifdef Q_OS_MAC | 77 #ifdef Q_OS_MAC |
77 dirs.push_back(myDir + "/../Resources"); | 78 dirs.push_back(myDir + "/../Resources"); |
78 #else | 79 #else |
79 #ifndef Q_OS_WIN32 | 80 #ifndef Q_OS_WIN32 |
81 dirs.push_back(myDir + "/../lib/" + binaryName); | |
80 dirs.push_back(myDir + "/../lib/" + appName); | 82 dirs.push_back(myDir + "/../lib/" + appName); |
81 #endif | 83 #endif |
82 dirs.push_back(myDir + "/helpers"); | 84 dirs.push_back(myDir + "/helpers"); |
83 #endif | 85 #endif |
84 dirs.push_back(myDir); | 86 dirs.push_back(myDir); |