Skip to content

Commit

Permalink
Merge branch 'master' into feature/cutting
Browse files Browse the repository at this point in the history
  • Loading branch information
lzh9102 committed Nov 27, 2013
2 parents aeb7ea1 + db351fa commit 556220c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/main.cpp
Expand Up @@ -98,11 +98,15 @@ static bool load_constants(QApplication& app)
// register an external tool for use
static void register_tool(const char *name)
{
QString exefile = name; // default: use the program in PATH
#ifdef TOOLS_IN_DATA_PATH // Search external tools in <datapath>/tools
ExePath::setPath(name, Paths::dataFileName("tools/%1").arg(name));
#else // Search external tools in environment variables
ExePath::setPath(name, name);
#endif
#ifdef Q_OS_WIN32 // executable files must end with .exe on MS Windows
exefile = Paths::dataFileName("tools/%1.exe").arg(name);
#else
exefile = Paths::dataFileName("tools/%1").arg(name);
#endif // Q_OS_WIN32
#endif // TOOLS_IN_DATA_PATH
ExePath::setPath(name, exefile);
}

int main(int argc, char *argv[])
Expand Down
Empty file modified windows_build.bat 100644 → 100755
Empty file.
Empty file modified windows_build_portable.bat 100644 → 100755
Empty file.

0 comments on commit 556220c

Please sign in to comment.