- std::string command1 ("dot -T png -o "
- + filename_png2 + " " + filename_dot2);
- std::string command1a("dot -T cmap -o "
- + filename_cmap2 + " " + filename_dot2);
+#ifdef WIN32
+ std::string currentexecpath("\"\"" + crea::System::GetDllAppPath("bbtk") +"\\dot_embedded\\dot\"");
+ std::string command1 (currentexecpath + " -Tpng -o " + filename_png2 + " " + filename_dot2 + "\"");
+ std::string command1a(currentexecpath + " -T cmap -o " + filename_cmap2 + " " + filename_dot2 + "\"");
+#else
+ #ifdef APPLE
+ std::string command1 ("dot -Tpng:quartz -o " + filename_png2 + " " + filename_dot2 );
+ std::string command1a("dot -T cmap -o " + filename_cmap2 + " " + filename_dot2 );
+ #else
+ std::string command1 ("dot -Tpng:cairo -o " + filename_png2 + " " + filename_dot2 );
+ std::string command1a("dot -T cmap -o " + filename_cmap2 + " " + filename_dot2 );
+ #endif
+#endif
+
+
+