Skip to content

Commit c04f065

Browse files
FIX: Update extension directory path handling in add_script_to_menu function (#6779)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 9fa79b9 commit c04f065

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/changelog.d/6779.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update extension directory path handling in add_script_to_menu function

src/ansys/aedt/core/extensions/customize_automation_tab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,8 +397,8 @@ def add_script_to_menu(
397397
build_file_data = build_file_data.replace("##JUPYTER_EXE##", str(jupyter_executable))
398398
build_file_data = build_file_data.replace("##TOOLKIT_NAME##", str(name))
399399
build_file_data = build_file_data.replace("##EXTENSION_TEMPLATES##", str(templates_dir))
400-
if copy_to_personal_lib and dest_script_path:
401-
extension_dir = dest_script_path.parent
400+
if dest_script_path:
401+
extension_dir = Path(dest_script_path).parent
402402
else:
403403
extension_dir = Path(ansys.aedt.core.extensions.__file__).parent / "installer"
404404
build_file_data = build_file_data.replace("##BASE_EXTENSION_LOCATION##", str(extension_dir))

0 commit comments

Comments
 (0)