Skip to content

Forward command line arguments for window launchers #1572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 8, 2025

Conversation

firai
Copy link
Contributor

@firai firai commented Apr 25, 2025

Fixes #1564 for window launchers, by implementing #1569.

@stonebig stonebig added this to the 2025-03 PEP 751 / AI local milestone Apr 25, 2025
@stonebig
Copy link
Contributor

stonebig commented Apr 25, 2025

It's curious,... on me patching from CONSOLE example, was just opening on idle the drag-and-droped .py" file over IDLE launcher.
Did you use recent "/scripts" , as I did some tweaks ?

@firai
Copy link
Contributor Author

firai commented Apr 25, 2025

I found the solution, which is to wrap everything in more quotes if arguments are passed. Drag and drop worked if nothing was in quotes. At least in my environment, Windows was passing paths with quotes, resulting in two consecutive double quoted strings. Apparently the way to make that work to wrap another round of outer quotes.

@firai firai marked this pull request as ready for review April 25, 2025 17:29
@stonebig stonebig merged commit 5544f46 into winpython:master May 8, 2025
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.

Launchers don't forward command line arguments to batch scripts
2 participants