Closed f-markus closed 1 year ago
Now part of PR 35 (https://github.com/OSVVM/OSVVM-Scripts/pull/35)
This would be the easy way to handle paths. At one point OSVVM did it this way.
Unfortunately ModelSim/QuestaSim had a bug that caused them to crash when a testbench has a space in the path and you tried to simulate it.
On windows it is not uncommon for someone's design to be located in a directory that has space in the path at an upper level. So relative paths for these is a requirement.
OTOH, there is a place where we check whether to search CurrentWorkingDirectory or not - it will be addressed there.
A alternative fix for this is in dev branch
I found that my wave.do is sourced twice, because the checks in proc SimulateRunScripts (OsvvmProjectScript.tcl) fail due to the fact that said variable is just set to '.' (currect directory), while the other paths are absolute. I thus suggest to use the absolute path for CurrentWorkingDirectory as well:
Having said this, maybe the proc ReducePath can be removed entirely? I realize that you changed [file normalize] to [ReducePath] at some locations explicitly, but I don't know why. Most probably I am missing something, but maybe it's worth regarding anyway