Fix bsv_src_root

files_root is actually the directory where the fusesoc command was
executed, but what we want here is the location of the python file being
executed so we can find the bluespec sources
This commit is contained in:
Ivan Ribeiro
2023-09-30 18:24:52 +01:00
parent fd1f7c12a2
commit 06eff948d9

View File

@@ -36,7 +36,9 @@ print(capwidth)
workdir = os.getcwd()
# location of source files is actually one level above the location of the core file
bsv_src_root = yamlcfg["files_root"] + "/.."
bsv_src_root = os.path.join(os.path.dirname(__file__), "..")
print("bsv_src_root")
print(bsv_src_root)
# set up bluespec command + arguments
bscargs = list()