diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-03-16 20:56:01 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-03-16 20:56:01 (GMT) |
commit | c855e4d0436a01792b540c7857e1a1997f4810d7 (patch) | |
tree | 4af96b1e682ed36543986d844d0430abedc10365 /tests/cgalcachetest.cc | |
parent | 5edc8c57da6eb8bfb7725ac51c4b87edd950e847 (diff) | |
parent | 5628a18f6a0fcf2dd170cac31e386f1ad4f97c0c (diff) |
Merge branch 'noqt' of ssh://ssh.github.com:443/openscad/openscad into noqt_tweaks
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); |