Skip to content

Commit

Permalink
Merge branch 'main' into 5362-fix-sweep-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveTwyman authored Nov 12, 2024
2 parents ef17d6c + f73c6c9 commit e3a645f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ is_linux = os.name == "posix"
if is_linux:
import subprocessdotnet as subprocess

toolkits_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
toolkits_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))

sys.path.append(toolkits_dir)

Expand Down

0 comments on commit e3a645f

Please sign in to comment.