fix rel_sym_path proc

This commit is contained in:
schippes 2020-08-13 02:46:49 +02:00
parent ea4513f9c5
commit aeb6b12d73
1 changed files with 1 additions and 1 deletions

View File

@ -2420,6 +2420,7 @@ proc rel_sym_path {symbol} {
set pl [string length $path_elem]
if { [string equal -length $pl $path_elem $symbol] } {
set name [string range $symbol [expr $pl+1] end]
break
}
}
if { ![string compare $name {} ] } {
@ -2454,7 +2455,6 @@ proc abs_sym_path {fname {ext {} } } {
} elseif {[regexp {^\./} $fname ] } {
regsub {^\./} $fname {} fname
}
set lib_cell [get_cell $fname]
set name {}
if { ![regexp {^/} $fname] } {
foreach path_elem $pathlist {