[issue40253] Fix .py(w) file association with Pyhon 3 Windows installer
New submission from virtualnobi : Recently installed Python 3.8 (from 2.7) on Windows 10, and all my scripts didn't work anymore. For some strange reason > python -s script.py args would put the args into sys.argv[], while > script.py args would only show the script in sys.argv[]. I found this report which fixed the problem: https://stackoverflow.com/questions/15281951/sys-argv-contents-when-calling-python-script-implicitly-on-windows (Basically, the .py(w) association in the registry need an additional '%*' parameter to pass the script parameters.) So I assume the Python 3 Windows installer overwrote my earlier registry associations. The other way the problem happened could be that the Python 3 installer did not change the registry assocation to 3.8, and I did this manually. I verified that setting a "default program" for windows will put the deficient association (without argument passing) into the registry. Either way, I would expect that after installing Python 3.8, my scripts would really run with 3.8, and with their arguments. :-) Danke & Grüße von nobi -- components: Installation, Windows messages: 366192 nosy: paul.moore, steve.dower, tim.golden, virtualnobi, zach.ware priority: normal severity: normal status: open title: Fix .py(w) file association with Pyhon 3 Windows installer type: behavior versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue40253> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40253] Fix .py(w) file association with Pyhon 3 Windows installer
virtualnobi added the comment: Eryk - thanks for your response. > I recommend selecting the installed "Python.File" progid instead. > It's the "Python" app with the launcher icon that has a rocket on it. I don't have a Python with rocket launcher. When I use "Open With" on Windows Explorer, I only have two Python icons with the yin-yan snakes, one with white background (I presume that's still 2.7, as the file icons were white before), and one with black background (which is available since I installed 3.8). If I select "Choose default program" (or similar - I have a German Windows), the list still only contains these two Python icons, and lot of unrelated stuff (zip, thunderbird, etc.). Initially, the black-background Python was not in this list at all, and I continued by "Further Options" and used the resulting browser to pick the 3.8 version. Since then, I have white and black Pythons. How do I get to the "rocket" launcher? Danke & Grüße von nobi -- ___ Python tracker <https://bugs.python.org/issue40253> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue40253] Fix .py(w) file association with Pyhon 3 Windows installer
virtualnobi added the comment: Eryk, I installed from python.org (didn't even know that it would be available from Microsoft Store). Nevertheless, I don't find py.exe. Should it be installed besides python.exe? If not, where else? I understand that py.exe is at least in part used to make handling multiple python versions easier. As I planned to only have one version (which might have been a bad idea in hindsight :-( I might have unchecked any option that sounded like this... Danke & Grüße von nobi -- ___ Python tracker <https://bugs.python.org/issue40253> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com