Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
andrmor committed Mar 27, 2017
1 parent ce26801 commit c0aeb8b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/common/globalsettingsclass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include "ajsontools.h"
#include "anetworkmodule.h"
#include "ascriptmanager.h"
#include "amessage.h"

#ifdef GUI
#include "globalsettingswindowclass.h"
Expand Down Expand Up @@ -64,6 +65,17 @@ GlobalSettingsClass::GlobalSettingsClass(ANetworkModule *NetModule) : NetModule(

//dir where examples will be copied
ExamplesDir = QDir::current().absolutePath() + "/EXAMPLES";

#ifdef Q_OS_WIN32
if (!QDir(ExamplesDir).exists()) //direct call of ants2.exe
{
QDir dir = QDir::current();
dir.cdUp();
QString candidate = dir.absolutePath() + "/EXAMPLES";
if (QDir(candidate).exists())
ExamplesDir = candidate;
}
#endif
// qDebug() << "-examples-"<<ExamplesDir;

//dir for tmp saves
Expand Down

0 comments on commit c0aeb8b

Please sign in to comment.