tools: Try harder to collapse ../ components in AbsPath

Idea from Angus Gratton, ANU
This commit is contained in:
Andrew Johnson
2012-09-11 12:11:55 -05:00
parent 7e6e38060f
commit 4790578953
+1
View File
@@ -123,6 +123,7 @@ sub AbsPath {
# Now calculate the absolute path
my $abs = File::Spec->rel2abs($path, abs_path($cwd));
$abs = abs_path($abs) if -e $abs;
return LocalPath($abs);
}