From 3e900345f56283fd0caf53a16628ab850e926c61 Mon Sep 17 00:00:00 2001 From: Samuelopez-ansys Date: Tue, 12 Nov 2024 16:27:26 +0100 Subject: [PATCH] Fix hardcoded path --- .../core/workflows/templates/run_extension_manager.py_build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ansys/aedt/core/workflows/templates/run_extension_manager.py_build b/src/ansys/aedt/core/workflows/templates/run_extension_manager.py_build index 8ec46c8c71f..0d831bc42a4 100644 --- a/src/ansys/aedt/core/workflows/templates/run_extension_manager.py_build +++ b/src/ansys/aedt/core/workflows/templates/run_extension_manager.py_build @@ -50,10 +50,10 @@ def main(): # Get AEDT version version_short = oDesktop.GetVersion()[2:6].replace(".", "") # Launch extension manager - python_exe = r"C:\Users\smorais\AppData\Roaming\.pyaedt_env\3_10\Scripts\python.exe" + python_exe = r"##PYTHON_EXE##" % version # Extensions directory current_dir = os.path.dirname(os.path.abspath(os.path.realpath(__file__))) - pyaedt_extensions_dir = os.path.normpath(os.path.join(current_dir, r"Lib")) + pyaedt_extensions_dir = os.path.normpath(os.path.join(current_dir, r"##TOOLKIT_REL_LIB_DIR##")) pyaedt_script = os.path.join(pyaedt_extensions_dir, "extension_manager.py") # Check if CPython interpreter and AEDT release match python_exe = pyaedt_utils.sanitize_interpreter_path(python_exe, version_short)