Prior to Vivado 2015.3 some users found it difficult to determine the location from which to source a script generated with the write_project_tcl command.
The directory structure must be maintained from when the script was created for it to rebuild successfully.
The -origin_dir switch has been added to the write_project_tcl command so that the user can specify the directory of origin.
This allows a script to be sourced from
any location so that the project can be successfully rebuilt.
In Vivado 2015.3 there are two ways to use the switch.
Set the 'origin_dir_loc' variable with the desired relative/absolute path in the Tcl shell before sourcing the generated script.
The script will set this value as origin_dir and resolve the source file paths accordingly.
Pass '--origin_dir ' on the Vivado command line.