Skip to content

Resolve GAMS/Windows logfile name issue#3595

Merged
mrmundt merged 17 commits intoPyomo:mainfrom
mrmundt:issue-3579
May 6, 2025
Merged

Resolve GAMS/Windows logfile name issue#3595
mrmundt merged 17 commits intoPyomo:mainfrom
mrmundt:issue-3579

Conversation

@mrmundt
Copy link
Copy Markdown
Contributor

@mrmundt mrmundt commented May 5, 2025

Fixes #3579

Summary/Motivation:

It was reported in #3579 that there are issues in GAMS on Windows when a path has spaces. This PR resolves that (and it was, in fact, a pretty tricky little thing to resolve. GAMS + subprocess on Windows is a bit of a bear.)

Changes proposed in this PR:

  • Map logfile name to short path on Windows
  • Add tests to ensure correct functionality

Legal Acknowledgement

By contributing to this software project, I have read the contribution guide and agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the BSD license.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

Copy link
Copy Markdown
Member

@jsiirola jsiirola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two relatively minor nits and one question.

@mrmundt mrmundt merged commit 5df0a00 into Pyomo:main May 6, 2025
31 checks passed
@mrmundt mrmundt deleted the issue-3579 branch May 6, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GAMS.py fails to quote log file path with spaces when passing lf=

2 participants