added a helper command "create_user_xschemrc" that copies system xschemrc to user xschem config dir (~/.xschem/xschemrc usually) if such file is not existing. After some thinking i came to the conclusion i wont do this automatically, as there might be use cases where a user does not want such a file.
This commit is contained in:
parent
ba5eb149a8
commit
2ec4b1c8b3
|
|
@ -3109,6 +3109,18 @@ proc delete_files { dir } {
|
|||
}
|
||||
}
|
||||
|
||||
proc create_user_xschemrc {} {
|
||||
global USER_CONF_DIR XSCHEM_SHAREDIR
|
||||
|
||||
if {![file exists $USER_CONF_DIR/xschemrc]} {
|
||||
file copy $XSCHEM_SHAREDIR/xschemrc $USER_CONF_DIR/xschemrc
|
||||
puts stderr "copied system $XSCHEM_SHAREDIR/xschemrc to $USER_CONF_DIR/xschemrc"
|
||||
puts stderr "Please review the file and make your changes, then restart xschem"
|
||||
} else {
|
||||
puts stderr "$USER_CONF_DIR/xschemrc already exists, will not overwrite."
|
||||
}
|
||||
}
|
||||
|
||||
proc create_pins {} {
|
||||
global env retval USER_CONF_DIR
|
||||
global filetmp
|
||||
|
|
|
|||
Loading…
Reference in New Issue