-
Notifications
You must be signed in to change notification settings - Fork 115
Open
Labels
enhNew features & functionalityNew features & functionality
Description
If GAMS is installed, the gams executable is located on the PATH or IXMP_GAMS_PATH, but the GAMS license is invalid or expired, then
Lines 115 to 119 in d1c829a
| # Parse GAMS system directory path | |
| if match := re.search(r"^\s*SysDir (.*)", output, re.MULTILINE): | |
| self.system_dir = Path(match.group(1)) | |
| else: | |
| self.system_dir = Path.cwd() |
Path.cwd() instead of the actual GAMS location.
This leads to later symptoms that misleadingly suggest GAMS is not installed, rather than informing of the license error.
To resolve: adjust the code to use self.executable instead of Path.cwd(), even if the run of null.gms fails.
Metadata
Metadata
Assignees
Labels
enhNew features & functionalityNew features & functionality