From 1b1fb26da37a2a426dd1f5260b0f08ff4e321f0e Mon Sep 17 00:00:00 2001 From: MingZhu Yan <69898423+trdthg@users.noreply.github.com> Date: Thu, 2 Jan 2025 04:01:11 +0800 Subject: [PATCH] [CTG] Set env_dir to '../../riscv-test-suite/env' (#539) Signed-off-by: MingZhu Yan Co-authored-by: Umer Shahid --- riscv-ctg/riscv_ctg/ctg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/riscv-ctg/riscv_ctg/ctg.py b/riscv-ctg/riscv_ctg/ctg.py index 2057867a8..2828639b0 100644 --- a/riscv-ctg/riscv_ctg/ctg.py +++ b/riscv-ctg/riscv_ctg/ctg.py @@ -106,7 +106,8 @@ def ctg(verbose, out, random ,xlen_arg,flen_arg, cgf_file,num_procs,base_isa, ma logger.info('Copyright (c) 2020, InCore Semiconductors Pvt. Ltd.') logger.info('All Rights Reserved.') logger.info("Copying env folder to Output directory.") - env_dir = os.path.expanduser("~/riscv-arch-test/riscv-test-suite/env") + current_dir = os.path.dirname(os.path.abspath(__file__)) + env_dir = os.path.join(current_dir, "../../riscv-test-suite/env") if not os.path.exists(env_dir): shutil.copytree(const.env,env_dir) xlen = int(xlen_arg)