Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kathy Pippert <[email protected]>
  • Loading branch information
Samuelopez-ansys and PipKat authored Apr 29, 2024
1 parent 141bf22 commit 0b958c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pyaedt/misc/Run_Toolkit_Manager.py_build
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def main():

def check_file(file_path):
if not os.path.isfile(file_path):
show_error('"{}" does not exist. Please click on the "Install PyAEDT" button in the Automation ribbon.'.format(
show_error('"{}" does not exist. Click the "Install PyAEDT" button in the Automation ribbon.'.format(
file_path))


Expand Down
2 changes: 1 addition & 1 deletion pyaedt/misc/aedtlib_personalib_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def install_toolkit(toolkit_dir, product, aedt_version, is_student_version=False
os.makedirs(lib_dir, exist_ok=True)
os.makedirs(tool_dir, exist_ok=True)
files_to_copy = ["Console", "Run_PyAEDT_Script", "Jupyter", "Run_Toolkit_Manager"]
# Remove hard-coded version number from Python virtual environment path, and replace it with the corresponding AEDT
# Remove hard-coded version number from Python virtual environment path and replace it with the corresponding AEDT
# version's Python virtual environment.
version_agnostic = False
if aedt_version[2:6].replace(".", "") in sys.executable:
Expand Down
6 changes: 3 additions & 3 deletions pyaedt/misc/toolkit_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def is_toolkit_installed(toolkit_name):


def open_window(window, window_name, open_source_toolkits):
"""Open window action"""
"""Open a window."""
if not hasattr(window, "opened"):
window.opened = True
window.title(window_name)
Expand Down Expand Up @@ -217,9 +217,9 @@ def button_is_clicked(
executable_interpreter=executable_interpreter,
)
else:
desktop.logger.info("PyAEDT environment is not installed")
desktop.logger.info("PyAEDT environment is not installed.")
else:
desktop.logger.info("Uninstall {}".format(name))
desktop.logger.info("Uninstall {}.".format(name))
desktop.remove_script_from_menu(name, product=toolkit_level)

desktop.odesktop.CloseAllWindows()
Expand Down

0 comments on commit 0b958c4

Please sign in to comment.