symbols picked up from CWD are saved in parent design without absolute paths even if the CWD is not in XSCHEM_LIBRARY_PATH list of places.

This commit is contained in:
stefan schippers 2024-07-19 15:13:38 +02:00
parent d656d4198a
commit 8b5ed3f32e
1 changed files with 6 additions and 0 deletions

View File

@ -5920,7 +5920,13 @@ proc rel_sym_path {symbol} {
if {$name eq {} } {
# no known lib, so return full path
set name ${symbol}
if {[file dirname $name] eq $curr_dirname} {
# remove path if file is in pwd
set name [file tail $name]
}
}
return $name
}