Skip to content

Commit

Permalink
FIX: Case where only a prerelease is installed on system (#5264)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alberto-DM authored Oct 9, 2024
1 parent 4a894a0 commit eff74b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ansys/aedt/core/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -850,7 +850,7 @@ def _init_desktop(self):
settings.aedt_install_dir = self.odesktop.GetExeDir()

def _assert_version(self, specified_version, student_version):
if self.current_version == "":
if self.current_version == "" and aedt_versions.latest_version == "":
raise Exception("AEDT is not installed on your system. Install AEDT version 2022 R2 or higher.")
if not specified_version:
if student_version and self.current_student_version:
Expand All @@ -860,7 +860,10 @@ def _assert_version(self, specified_version, student_version):
student_version = False
self.logger.warning("AEDT Student Version not found on the system. Using regular version.")
else:
specified_version = self.current_version
if self.current_version != "":
specified_version = self.current_version
else:
specified_version = aedt_versions.latest_version
if "SV" in specified_version:
student_version = True
self.logger.warning("Only AEDT Student Version found on the system. Using Student Version.")
Expand Down

0 comments on commit eff74b2

Please sign in to comment.