virtual int Execute()
{
wxString x(_T("explorer ") + Manager::Get()->GetProjectManager()->GetActiveProject()->GetCommonTopLevelPath());
::wxExecute(x);
};
And takes marginally less time to implement. Plus, if all the files C::B ever sees are in the src subdirectory, that's what GetCommonTopLevelPath() will return, ne?
Added $PROJECT_TOPDIR macro. Aliases: $PROJECT_TOPDIRECTORY, $PROJECTTOPDIR and $PROJECTTOPDIRECTORY. Returns the project's common top-level path.