浏览代码

ENH: remove /tmp_mnt in collapse full path

Bill Hoffman 22 年之前
父节点
当前提交
e15ebb6255
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      Source/kwsys/SystemTools.cxx

+ 5 - 1
Source/kwsys/SystemTools.cxx

@@ -692,7 +692,6 @@ void SystemTools::ConvertToUnixSlashes(kwsys_std::string& path)
     }
   
   // if there is a /tmp_mnt in a path get rid of it!
-  // stupid sgi's 
   if(path.find("/tmp_mnt") == 0)
     {
     path = path.substr(8);
@@ -1302,6 +1301,11 @@ kwsys_std::string SystemTools::CollapseFullPath(const char* in_relative,
     {
     newDir = SystemTools::GetCurrentWorkingDirectory();
     }
+  // if there is a /tmp_mnt in a path get rid of it!
+  if(newDir.find("/tmp_mnt") == 0)
+    {
+    newDir = newDir.substr(8);
+    }
 #endif
   
   // Restore original working directory.