metatools/sysdeftools/rootsysdef.pl
changeset 664 44b0e894b7ab
parent 660 66ff3e731c60
child 663 8e27d440923e
equal deleted inserted replaced
654:7c11c3d8d025 664:44b0e894b7ab
   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]);