if (description.IsEmpty()) return false;
#if(_WIN32)
- // \TODO rewrite, according to new trick // JPR
-
- char * install_Dir = getenv("bbtk_DIR");
- std::string execGUICreateNewPackage(install_Dir);
- execGUICreateNewPackage = "bbi " + execGUICreateNewPackage;
-
+
std::string command("creaNewProject.bat ");
std::string command1("creaSed.exe ");
std::string command2("del ");
// Create a Package at the same time. JPR
/// \TODO rewrite, according to new trick // JPR
- execGUICreateNewPackage += "\..\..\..\share\bbtk\bbs\toolsbbtk\appli\GUICreatePackage.bbs";
- system(execGUICreateNewPackage.c_str());
+ // \TODO rewrite, according to new trick // JPR
+ char * install_Dir = getenv("bbtk_DIR");
+ if(install_Dir != NULL) // variable not always defined
+ {
+ std::string execGUICreateNewPackage(install_Dir);
+ execGUICreateNewPackage = "bbi " + execGUICreateNewPackage;
+ execGUICreateNewPackage += "\..\..\..\share\bbtk\bbs\toolsbbtk\appli\GUICreatePackage.bbs";
+ system(execGUICreateNewPackage.c_str());
+ }
}
else
{