Skip to content

Quote the SU2 executable path in SU2_PY on Linux/macOS (SU2_RUN with spaces) - #2935

Merged
bigfooted merged 2 commits into
su2code:developfrom
nikita-ageev:fix/su2py-quote-exec-path
Oct 10, 2026
Merged

bigfooted merged 2 commits into
su2code:developfrom
nikita-ageev:fix/su2py-quote-exec-path

Conversation

@nikita-ageev

@nikita-ageev nikita-ageev commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Small fix, see the diff.

SU2_RUN containing a space broke SU2_PY on Linux/macOS because the
executable path was only quoted on Windows. Quote it in build_command
(shlex.quote on POSIX, double quotes on Windows) and pass plain
"SU2_XXX config.cfg" strings from the callers.
@joshkellyjak joshkellyjak self-assigned this Oct 9, 2026

@joshkellyjak joshkellyjak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Minor: interface.quote was a module-level name, so out-of-tree scripts could possibly reference it. I think removing it is fine, but please mention it in the PR description so it ends up in the release notes.

@bigfooted
bigfooted merged commit 171504d into su2code:develop Oct 10, 2026
38 checks passed
joshkellyjak added a commit that referenced this pull request Oct 10, 2026
joshkellyjak added a commit that referenced this pull request Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants