From 06eff948d9461082ed7bba385d335b05c8e1a220 Mon Sep 17 00:00:00 2001 From: Ivan Ribeiro Date: Sat, 30 Sep 2023 18:24:52 +0100 Subject: [PATCH] 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 --- fusesoc/fusesoc-script.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fusesoc/fusesoc-script.py b/fusesoc/fusesoc-script.py index a3b066a..59a7522 100644 --- a/fusesoc/fusesoc-script.py +++ b/fusesoc/fusesoc-script.py @@ -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()