[New-bugs-announce] [issue17903] Python launcher for windows should search path for #!/usr/bin/env

Paul Moore report at bugs.python.org
Sat May 4 12:12:42 CEST 2013

New submission from Paul Moore:

The Python launcher for windows should recognise a hashbang line of #!/usr/bin/env python, and use the python executable found on PATH to run the script. If no python executable is present on PATH the launcher should fall back to the current behaviour (using the default python, as if #!/usr/bin/python were present).

This matches the behaviour on other platforms where env is used to ensure that the script uses the user's currently activated Python, and is particularly important when virtualenvs are being used.

assignee: vinay.sajip
components: Windows
messages: 188347
nosy: pmoore, vinay.sajip
priority: normal
severity: normal
status: open
title: Python launcher for windows should search path for #!/usr/bin/env
type: enhancement
versions: Python 3.4

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list