summaryrefslogtreecommitdiff
path: root/tests/csgtermtest.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-03-16 20:56:01 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-03-16 20:56:01 (GMT)
commitc855e4d0436a01792b540c7857e1a1997f4810d7 (patch)
tree4af96b1e682ed36543986d844d0430abedc10365 /tests/csgtermtest.cc
parent5edc8c57da6eb8bfb7725ac51c4b87edd950e847 (diff)
parent5628a18f6a0fcf2dd170cac31e386f1ad4f97c0c (diff)
Merge branch 'noqt' of ssh://ssh.github.com:443/openscad/openscad into noqt_tweaks
Diffstat (limited to 'tests/csgtermtest.cc')
-rw-r--r--tests/csgtermtest.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/csgtermtest.cc b/tests/csgtermtest.cc
index e793c4a..864ba5d 100644
--- a/tests/csgtermtest.cc
+++ b/tests/csgtermtest.cc
@@ -38,7 +38,6 @@
#include "Tree.h"
#include "csgterm.h"
-#include <QCoreApplication>
#ifndef _MSC_VER
#include <getopt.h>
#endif
@@ -53,7 +52,6 @@ namespace fs = boost::filesystem;
std::string commandline_commands;
std::string currentdir;
-QString examplesdir;
using std::cout;
@@ -71,13 +69,12 @@ int main(int argc, char **argv)
Builtins::instance()->initialize();
- QCoreApplication app(argc, argv);
fs::path original_path = fs::current_path();
currentdir = boosty::stringy( fs::current_path() );
- parser_init(QCoreApplication::instance()->applicationDirPath().toStdString());
- add_librarydir(boosty::stringy(fs::path(QCoreApplication::instance()->applicationDirPath().toStdString()) / "../libraries"));
+ parser_init(boosty::stringy(fs::path(argv[0]).branch_path()));
+ add_librarydir(boosty::stringy(fs::path(argv[0]).branch_path() / "../libraries"));
Context root_ctx;
register_builtin(root_ctx);
contact: Jan Huwald // Impressum