diff options
author | Marius Kintel <marius@kintel.net> | 2013-04-12 04:13:09 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-04-12 04:13:09 (GMT) |
commit | 60a351a5ee593aee68716dfa76e9ee4f4b767e9f (patch) | |
tree | 374e7104bec631f64187010ba8c2521ba95a3fb7 /tests/cgalcachetest.cc | |
parent | 6de88962556c5343f6b8db7fdfe4233c50ba2953 (diff) | |
parent | f242a7a6934effdb292c0fedafa954bafc615cc3 (diff) |
Merge branch 'noqt'
Diffstat (limited to 'tests/cgalcachetest.cc')
-rw-r--r-- | tests/cgalcachetest.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/cgalcachetest.cc b/tests/cgalcachetest.cc index 3a0a855..b7e51b5 100644 --- a/tests/cgalcachetest.cc +++ b/tests/cgalcachetest.cc @@ -40,7 +40,6 @@ #include "PolySetCGALEvaluator.h" #include "CGALCache.h" -#include <QCoreApplication> #ifndef _MSC_VER #include <getopt.h> #endif @@ -57,7 +56,6 @@ namespace po = boost::program_options; std::string commandline_commands; std::string currentdir; -QString examplesdir; using std::string; @@ -124,13 +122,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() ); + 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); |