imgtools/imaker/src/imaker.pm
changeset 434 c3bf95590c94
parent 315 6325833fc679
child 598 0a541d1f13c3
equal deleted inserted replaced
433:5698eefedfc8 434:c3bf95590c94
   349 
   349 
   350 sub GetAbsDirname($;$$)
   350 sub GetAbsDirname($;$$)
   351 {
   351 {
   352     (my $dir = shift()) =~ s/^>>?(?!>)//;
   352     (my $dir = shift()) =~ s/^>>?(?!>)//;
   353     my $absdir = "";
   353     my $absdir = "";
   354     eval { local $SIG{__DIE__}; $absdir = Cwd::abs_path($dir) };
   354     if (-e $dir) {$absdir = Cwd::abs_path($dir) };
   355     return(PathConv($absdir || File::Spec->rel2abs($dir,
   355     return(PathConv($absdir || File::Spec->rel2abs($dir,
   356         $dir !~ /^$gWorkdrive/i && $dir =~ /^([a-z]:)/i ? "$1/" : ""), shift(), shift()));
   356         $dir !~ /^$gWorkdrive/i && $dir =~ /^([a-z]:)/i ? "$1/" : ""), shift(), shift()));
   357 }
   357 }
   358 
   358 
   359 sub GetAbsFname($;$$)
   359 sub GetAbsFname($;$$)