(JL) update abs_sym_path such that using network drive (ie. //192.168.1.102/test) will return as is, (JL) add example for network drive to add to XSCHEM_LIBRARY_PATH

This commit is contained in:
Stefan Frederik 2022-10-31 23:48:34 +01:00
parent 153929806b
commit dc6e9e2d9c
2 changed files with 6 additions and 1 deletions

View File

@ -56,6 +56,7 @@
# append XSCHEM_LIBRARY_PATH :${xschem_doc_dir}/gschem_import/sym
#### For Windows, use ; instead of :, and enclosed pathname with ""
# append XSCHEM_LIBRARY_PATH ";//192.168.1.1/Projects/mysch"
# append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library"
# append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library/devices"
# append XSCHEM_LIBRARY_PATH ";${XSCHEM_SHAREDIR}/../xschem_library/examples"

View File

@ -4422,7 +4422,11 @@ proc abs_sym_path {fname {ext {} } } {
## absolute path: return as is
if { [regexp {^[A-Za-z]\:/} $fname ] } {
return "$fname"
}
}
# network drive, return as is
if { [regexp {^/} $fname] } {
return "$fname"
}
} else {
## absolute path: return as is
if { [regexp {^/} $fname] } {