ENH: fix for AddKeepPath not calling realpath

This commit is contained in:
Ken Martin 2006-08-11 10:54:35 -04:00
parent fd56f7247a
commit 7de2d93d1a
1 changed files with 2 additions and 1 deletions

View File

@ -2441,7 +2441,8 @@ void SystemTools::AddTranslationPath(const char * a, const char * b)
void SystemTools::AddKeepPath(const char* dir)
{
kwsys_stl::string cdir = SystemTools::CollapseFullPath(dir);
kwsys_stl::string cdir;
Realpath(SystemTools::CollapseFullPath(dir).c_str(), cdir);
SystemTools::AddTranslationPath(cdir.c_str(), dir);
}