From 0c08d5da5f9c0fcfc42f14feaafeceb4a243d400 Mon Sep 17 00:00:00 2001 From: Eren Dogan Date: Sun, 22 Jan 2023 18:14:48 -0800 Subject: [PATCH] Search for tools in conda first --- compiler/globals.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/compiler/globals.py b/compiler/globals.py index c38b0f25..277ed235 100644 --- a/compiler/globals.py +++ b/compiler/globals.py @@ -472,8 +472,16 @@ def find_exe(check_exe): Check if the binary exists in any path dir and return the full path. """ + # Search for conda setup if used + if OPTS.use_conda: + from openram import CONDA_HOME + search_path = "{0}/bin{1}{2}".format(CONDA_HOME, + os.pathsep, + os.environ["PATH"]) + else: + search_path = os.environ["PATH"] # Check if the preferred spice option exists in the path - for path in os.environ["PATH"].split(os.pathsep): + for path in search_path.split(os.pathsep): exe = os.path.join(path, check_exe) # if it is found, then break and use first version if is_exe(exe):