command += " \"" + bbDescription + "\"";
command += " \"" + bbCategories + "\"";
+
+#ifdef __APPLE__
+ command = "source ~/.bashrc ; " + command;
+#endif
+
//excecute command
- //wxMessageBox(crea::std2wx("Command: ->" + command + "<-"),_T("Creating Black Box"),wxOK | wxICON_INFORMATION);
+// wxMessageBox(crea::std2wx("Command: ->" + command + "<-"),_T("Creating Black Box"),wxOK | wxICON_INFORMATION);
if(system(command.c_str()))
{
result = new std::string("Error executing command '" + command + "'");
modelCDMFile* header = NULL;
modelCDMFile* source = NULL;
wxDir dir(crea::std2wx(path));
- if (dir.IsOpened())
+ if (dir.IsOpened())
{
wxString fileName;
bool cont = dir.GetFirst(&fileName, crea::std2wx("bb"+package+bbName+".h"), wxDIR_FILES);
}
}
//if source and header exist
+
+
if (header != NULL && source != NULL)
{
//create black box