summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-11-22 14:04:14 -0300
committerTomás Touceda <chiiph@leap.se>2013-11-22 14:04:14 -0300
commit5aa163f1519e96bdc16892d4073a86bd19df3bd3 (patch)
treecdf6f4abb32291eb6db20cbf68a3274d5d95fbe2
parentc4018319e891eb9df4d6b5467f420d99c5f622aa (diff)
Fix paths
-rw-r--r--src/main.cpp7
1 files 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"