Message85017
I agree.
In any case, double-clicking on a .py file should start an "installed"
interpreter, that is one listed in the registry:
HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\X.Y\InstallPath
Today starting a .py file only open the last installed Python interpreter.
With this proposal, the launcher choose the "best" installed interpreter
for the given script, and falls back to the last installed one.
There may be different definitions of "best". The algorithm could look
like this:
- if the first line is
#! c:/some/path/to/python.exe
and the registry contains an installation with
InstallPath="c:/some/path/to"
choose this one.
- if the first line matches
#! c:/python/([1-9])([0-9])/python.exe
and if the following registry key exists:
HKEY_LOCAL_MACHINE/SOFTWARE/Python/PythonCore/\1.\2/InstallPath
choose this one.
- else, use the last installed interpreter. |
|
Date |
User |
Action |
Args |
2009-04-01 15:10:23 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, mhammond, terry.reedy, techtonik, tarek, jmfauth, bebac, asvetlov |
2009-04-01 15:10:23 | amaury.forgeotdarc | set | messageid: <1238598623.19.0.0955112626129.issue4015@psf.upfronthosting.co.za> |
2009-04-01 15:10:22 | amaury.forgeotdarc | link | issue4015 messages |
2009-04-01 15:10:21 | amaury.forgeotdarc | create | |
|