diff --git a/src/xschem.tcl b/src/xschem.tcl index 8e71b908..fd4e24a6 100644 --- a/src/xschem.tcl +++ b/src/xschem.tcl @@ -6193,7 +6193,8 @@ proc set_paths {} { set pathlist_orig [split $XSCHEM_LIBRARY_PATH :] } foreach i $pathlist_orig { - regsub {^~} $i $env(HOME) i + regsub {^~$} $i ${env(HOME)} i + regsub {^~/} $i ${env(HOME)}/ i if { ![string compare $i .] } { lappend pathlist $i } elseif { [ regexp {\.\.\/} $i] } {