From 5aa163f1519e96bdc16892d4073a86bd19df3bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Touceda?= Date: Fri, 22 Nov 2013 14:04:14 -0300 Subject: Fix paths --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index ba770ce..66abb12 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -118,7 +118,8 @@ main(int argc, char** argv) fs::path full_path(fs::current_path()); updateIfNeeded(); - auto pypath = full_path.string() + ":" + full_path.string() + "/lib/"; + auto pypath = full_path.string() + "/apps/:" + full_path.string() + "/lib/"; + std::cout << pypath << std::endl; #if not defined _WIN32 && not defined _WIN64 fs::path fromCore("./lib/libQtCore.so.4"); fs::path toCore("./lib/libQtCore.NOTUSED"); @@ -155,8 +156,8 @@ main(int argc, char** argv) py::exec( "import sys\n" - "sys.path = [_pwd + '/lib',\n" - " _pwd + '/apps',\n" + "sys.path = [_pwd + '/apps',\n" + " _pwd + '/lib',\n" " _pwd + '/apps/eip',\n" " _pwd]\n" "import os\n" -- cgit v1.2.3