X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FbbtkwxGUIEditorGraphicBBS.cxx;h=93596627446f3930b78bfa3236751bb5df35d858;hb=0f60379c0e899055754c8a0be01a2649cc438bc8;hp=ca7bb43a364a791e5c626c73cc711543c96bb975;hpb=1590895a68260582cc2cc426a6d7c48235820fbc;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx index ca7bb43..9359662 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx @@ -1164,7 +1164,12 @@ void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) 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 ) ) { @@ -1172,6 +1177,11 @@ void wxGUIEditorGraphicBBS::OnPlugPackage(wxCommandEvent& event) 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 );