Skip to content

Quote Windows Explorer locate paths#3310

Closed
monsonego wants to merge 1 commit intopallets:mainfrom
monsonego:fix/windows-launch-locate-spaces
Closed

Quote Windows Explorer locate paths#3310
monsonego wants to merge 1 commit intopallets:mainfrom
monsonego:fix/windows-launch-locate-spaces

Conversation

@monsonego
Copy link
Copy Markdown

Summary

  • quote the /select target passed to Windows Explorer when click.launch(..., locate=True) is used
  • add a regression test for a path containing spaces

Why

explorer /select, expects the selected path to be quoted when it contains spaces. Without that quoting, click.launch(..., locate=True) can open the wrong location on Windows.

Validation

  • PYTHONPATH=src python -m pytest tests/test_termui.py -q

Fixes #2994

@davidism davidism closed this Apr 5, 2026
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.

launch() cannot locate files with spaces in the name on Windows

2 participants