Skip to content

Commit

Permalink
Merge pull request #1 from zaporozhets/fix/relative_path_in_bd_refere…
Browse files Browse the repository at this point in the history
…nces

Use relative path for BD references
  • Loading branch information
zaporozhets authored Mar 14, 2021
2 parents c0a92ac + 0355503 commit eb6df8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/write_project_tcl_git.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -809,8 +809,9 @@ proc add_references { sub_design } {
write_bd_as_proc $file
} else {
# Skip adding file if it's already part of the project
lappend l_script_data "if { \[get_files [file tail $file]\] == \"\" } {"
lappend l_script_data " import_files -quiet -fileset [current_fileset -srcset] $file\n}"
set rel_file_path "[get_relative_file_path_for_source $file [get_script_execution_dir]]"
lappend l_script_data "if { \[get_files [file tail $rel_file_path]\] == \"\" } {"
lappend l_script_data " import_files -quiet -fileset [current_fileset -srcset] $rel_file_path\n}"
}
}
}
Expand Down

0 comments on commit eb6df8d

Please sign in to comment.