// ==> Set system paths
mBin_path = Utilities::GetExecutablePath();
+
/* EED 23 Mars 2009
#ifdef MACOSX
mInstall_path = mBin_path + "/../../../..";
}
#endif
+
///\TODO : better use ??
mInstall_path = mBin_path + "/..";
Utilities::replace( mBbs_paths[iStrVec] , INVALID_FILE_SEPARATOR , VALID_FILE_SEPARATOR);
}
-
// always add "." (current working directory) at the begining
mPackage_paths.push_back(".");
// add system bin path (for build tree / standalone folder install)
// In any case, deal with bbtk_config.xml!
Read(configXmlFullPathName.c_str());
+
}
//=========================================================================
if (!Utilities::FileExists(mDot_bbtk_path)) mDot_bbtk_is_new = true;
Utilities::CreateDirectoryIfNeeded(mDot_bbtk_path);
+
mDoc_path = Utilities::MakeUserSettingsFullFileName("doc");
Utilities::CreateDirectoryIfNeeded(mDoc_path);
mTemp_path = Utilities::MakeUserSettingsFullFileName("tmp");
Utilities::CreateDirectoryIfNeeded(mTemp_path);
+
}
//=========================================================================
// -----------------------------------------------------------------
#if defined(__GNUC__)
-
// ------------------ create some usefull strings ----------------
// installed bbtk_path
char bbtk_path[1000];
strcpy(bbtk_path, Utilities::GetExecutablePath().c_str()); // JPR
//strcpy(bbtk_path, "/usr/local/bin");
+
+ std::string str_home=Utilities::GetEnvHome();
+
+ #if defined(WIN32)
+ str_home="C:"+str_home;
+ #endif
+
// rootDirectory
char rootDirectory[200];
- sprintf( rootDirectory, "%s/.bbtk", getenv("HOME"));
+ sprintf( rootDirectory, "%s/.bbtk", str_home.c_str());
// configPath
char configPath[200];
// ------------------------------------------------------------------
#elif defined(WIN32)
-
// installed bbtk_path
char bbtk_path[100];
strcpy(bbtk_path, "\"c:\\Program Files\\BBTK\\bin\"");