summaryrefslogtreecommitdiffhomepage
path: root/compat/base-path.cpp
blob: 2a26dcff6ad3f5cc837b1052da6e0af536d5eab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#undef NDEBUG
#include <cassert>

#include "base-path.hpp"
#include <QCoreApplication>

const QString& application_base_path()
{
    assert(qApp && "logic error");
    static QString path = QCoreApplication::applicationDirPath();
    return path;
}