From 7cc721b909aa07b7ec6f0eaf97b8cc61de6a15fc Mon Sep 17 00:00:00 2001 From: jean-pierre roux Date: Mon, 28 Feb 2011 19:06:55 +0000 Subject: [PATCH] Utilities::GetExecutablePath() vs "/usr/local/bin" --- kernel/src/bbtkConfigurationFile.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/kernel/src/bbtkConfigurationFile.cxx b/kernel/src/bbtkConfigurationFile.cxx index 5731b70..3721d79 100644 --- a/kernel/src/bbtkConfigurationFile.cxx +++ b/kernel/src/bbtkConfigurationFile.cxx @@ -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 // for getcwd # include @@ -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]; -- 2.45.1