]> Creatis software - bbtk.git/blobdiff - kernel/src/bbtkConfigurationFile.cxx
Utilities::GetExecutablePath() vs "/usr/local/bin"
[bbtk.git] / kernel / src / bbtkConfigurationFile.cxx
index 0fe498342befac96364994ca44483a2216efb39e..3721d79d259d9e4c0b6349ef868eeb2ea2473653 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkConfigurationFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2010/10/18 08:33:57 $
-  Version:   $Revision: 1.33 $
+  Date:      $Date: 2011/02/28 19:06:55 $
+  Version:   $Revision: 1.35 $
 =========================================================================*/
 
 /* ---------------------------------------------------------------------
@@ -38,6 +38,8 @@
 #include "bbtkXML.h"
 #include "bbtkUtilities.h"
 
+#include "creaSystem.h"
+
 #if defined(WIN32)
 # include <direct.h> // for getcwd
 # include <windows.h>
@@ -155,8 +157,8 @@ namespace bbtk
     mPackage_paths.push_back(mBin_path);
     // add system lib path (for install tree)
     //EED    mPackage_paths.push_back(mInstall_path + mFile_separator + "lib");
-    mPackage_paths.push_back(mInstall_path + "/lib");
-    mPackage_paths.push_back(mInstall_path + "/lib64");
+    mPackage_paths.push_back(mInstall_path + "/lib/creatools");
+    mPackage_paths.push_back(mInstall_path + "/lib64/creatools");
 #ifdef WIN32
     // add bin/Debug bin/Release paths (for build/install tree)
     //EED    mPackage_paths.push_back(mBin_path + mFile_separator + "Debug");
@@ -343,8 +345,9 @@ namespace bbtk
 
     // ------------------ create some usefull strings ----------------
     // installed bbtk_path
-    char bbtk_path[100];
-    strcpy(bbtk_path, "/usr/local/bin");
+    char bbtk_path[1000];
+    strcpy(bbtk_path, Utilities::GetExecutablePath().c_str());  // JPR
+    //strcpy(bbtk_path, "/usr/local/bin");
 
     // rootDirectory
     char rootDirectory[200];