summaryrefslogtreecommitdiff
path: root/tests/csgtermtest.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2013-03-12 05:14:58 (GMT)
committerMarius Kintel <marius@kintel.net>2013-03-12 05:14:58 (GMT)
commitdccc039211eebe3f69c935557bd56abae323c26f (patch)
treefb39b939619db2bb258de78cf38012919762fbbc /tests/csgtermtest.cc
parent6b8a5e266ca1725e35e76aef0caa639fe77fdc48 (diff)
Got rid of remaining Qt dependencies. The test framework should now be Qt-free
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