Skip to content

Commit

Permalink
Fix hardcoded path
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuelopez-ansys committed Nov 12, 2024
1 parent 48f4e87 commit 3e90034
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3e90034

Please sign in to comment.