Plug package doesn't work with new Creatis Copyright headers
Now skipping comments before reading packages
if(userResponse==wxID_OK)
{
std::string path = wx2std (FD->GetPath()) ;
+ #ifdef WIN32
+ std::string fname = path + "\\bbtkPackage";
+ #else
std::string fname = path + "/bbtkPackage";
+ #endif
+
std::cout << "Path chosen = \"" << FD->GetPath() << "\"" << std::endl;
if ( Utilities::FileExists( fname ) )
{
f.open(fname.c_str());
std::string pname;
f >> pname;
+ while(pname[0] == '#')
+ {
+ getline(f, pname, '\n');
+ f >> pname;
+ }
f.close();
bbtk::ConfigurationFile::GetInstance().AddPackagePathsAndWrite( path );