set orig_proj_dir "absolute path"This works fine as long as one user uses the system and always uses the same repository location when retrieving the controlled files.
The attached patch (ar59239_Vivado_2013_4_preliminary_rev2.zip) is available for Vivado 2013.4
With the attached patch installed, the script written by the write_project_tcl process will set an "origin_dir" variable that is based on the current working directory (CWD) when the command is executed.
if write_project_tcl is run with no option other than the name of the Tcl script to generate, the "origin_dir" will be set to "."
Paths inside the script will be made relative to "origin_dir".
In rare cases, if you do want to make the paths relative to some other "root" then you can specify that new "root" value via the "-paths_relative_to" switch.
This should be treated as an advanced user option and in most cases it should not be needed.
When you do specify -paths_relative_to, the value you pass via this switch will be captured verbatim in the origin_dir variable.
If you specify an absolute path, that absolute path will be retained even though this may result in invalid paths at the time the .tcl file is created.
|Name||File Size||File Type|