]> Creatis software - bbtk.git/commitdiff
Utilities::GetExecutablePath() vs "/usr/local/bin"
authorjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 28 Feb 2011 19:06:55 +0000 (19:06 +0000)
committerjean-pierre roux <jean-pierre.roux@creatis.insa-lyon.fr>
Mon, 28 Feb 2011 19:06:55 +0000 (19:06 +0000)
kernel/src/bbtkConfigurationFile.cxx

index 5731b70dcb5bacf40fe84ab85916515284d5f589..3721d79d259d9e4c0b6349ef868eeb2ea2473653 100644 (file)
@@ -2,8 +2,8 @@
   Program:   bbtk
   Module:    $RCSfile: bbtkConfigurationFile.cxx,v $
   Language:  C++
-  Date:      $Date: 2010/11/02 10:15:43 $
-  Version:   $Revision: 1.34 $
+  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>
@@ -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];