blob: c12ca2de7abd4784d33cdefe61507a3a67a3c7f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#include <QCoreApplication>
#include <QByteArray>
#include <QDir>
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
QByteArray currentPath = QDir::currentPath().toLocal8Bit();
fprintf(stdout, "%s", currentPath.constData());
app.exit();
}
|