metatools/sysdeftools/rootsysdef.pl
changeset 660 66ff3e731c60
parent 639 0e65f93be3cb
child 663 8e27d440923e
equal deleted inserted replaced
659:7afa5fba0903 660:66ff3e731c60
   250 	{
   250 	{
   251 	# normalize the path into an absolute one
   251 	# normalize the path into an absolute one
   252 	my  ($name,$path) = fileparse($_[0]);
   252 	my  ($name,$path) = fileparse($_[0]);
   253 	if($path eq '' && $name eq '') {return};
   253 	if($path eq '' && $name eq '') {return};
   254 	$path=~tr,\\,/,;
   254 	$path=~tr,\\,/,;
       
   255 	if ($path eq './')
       
   256 		{
       
   257 		return abs_path('.').$name;
       
   258 		}
   255 	if( -e $path)
   259 	if( -e $path)
   256 		{
   260 		{
   257 		return abs_path($path)."/$name";
   261 		return abs_path($path)."/$name";
   258 		}
   262 		}
   259 	my @dir = split('/',$_[0]);
   263 	my @dir = split('/',$_[0]);