From ff8f45d36c3fa7a96fe77ee67865d6ece6be648d Mon Sep 17 00:00:00 2001 From: Ryan Huffman Date: Mon, 3 Oct 2016 15:45:19 -0700 Subject: [PATCH] Fix application directory path --- interface/src/main.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index c2bc10eefc..3c4a3fd77a 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -129,9 +129,8 @@ int main(int argc, const char* argv[]) { parser.addOption(serverContentPathOption); parser.parse(arguments); if (parser.isSet(runServerOption)) { - //QString serverPath = QFileInfo(arguments[0]).path(); - QString applicationDirPath = QCoreApplication::applicationDirPath(); - QString serverPath = "/server-console/server-console.exe"; + QString applicationDirPath = QFileInfo(arguments[0]).path(); + QString serverPath = applicationDirPath + "/server-console/server-console.exe"; qDebug() << "Application dir path is: " << applicationDirPath; qDebug() << "Server path is: " << serverPath; QStringList args;