summaryrefslogtreecommitdiffhomepage
path: root/compat/base-path.cpp
blob: b544a3d1a3292c03b5767e5ed7f36860c1e7afe9 (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 const& const_path = QCoreApplication::applicationDirPath();
    return const_path;
}