majd229
Member level 2
I want to allow user to pass some variables (lib file path, some constraint values, etc). How can i do that with a PT -file command?
eg. In tcl file i want to have:
set timing_lib_path [lindex $argv 0]
set_app_var link_path $timing_lib_path
etc...
Then I want user to run:
pt_shell -file myScript.tcl /path/to/timing.lib
However, ptshell doesnt understand that anything after the "-file myScript.tcl " is an input argument to the tcl code itself and i get an error saying there are extra positional args. How can i do that? How can i allow any sort of input arg to a tcl code to run in batch mode?
Thank you
eg. In tcl file i want to have:
set timing_lib_path [lindex $argv 0]
set_app_var link_path $timing_lib_path
etc...
Then I want user to run:
pt_shell -file myScript.tcl /path/to/timing.lib
However, ptshell doesnt understand that anything after the "-file myScript.tcl " is an input argument to the tcl code itself and i get an error saying there are extra positional args. How can i do that? How can i allow any sort of input arg to a tcl code to run in batch mode?
Thank you