| 9 | namespace paths |
| 10 | { |
| 11 | optional<string> binaryDirectory() |
| 12 | { |
| 13 | const auto path = QCoreApplication::applicationDirPath(); |
| 14 | |
| 15 | if ( path == "" ) |
| 16 | { |
| 17 | LOG( ERROR ) << "Could not find binary directory."; |
| 18 | return std::nullopt; |
| 19 | } |
| 20 | |
| 21 | return path.toStdString(); |
| 22 | } |
| 23 | |
| 24 | optional<string> binaryDirectoryFindFile( const string fileName ) |
| 25 | { |
no outgoing calls
no test coverage detected