mirror of
https://github.com/python/cpython.git
synced 2026-02-13 19:04:37 +00:00
bpo-45901: Fixes argument passing when invoking .py files directly through the Store package (GH-29799)
(cherry picked from commit 4841e694ee)
Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
parent
fc16ea9c8b
commit
3dcbe01dc5
2 changed files with 6 additions and 2 deletions
|
|
@ -0,0 +1,4 @@
|
|||
When installed through the Microsoft Store and set as the default app for
|
||||
:file:`*.py` files, command line arguments will now be passed to Python when
|
||||
invoking a script without explicitly launching Python (that is, ``script.py
|
||||
args`` rather than ``python script.py args``).
|
||||
|
|
@ -430,7 +430,7 @@ def get_appxmanifest(ns):
|
|||
["python", "python{}".format(VER_MAJOR), "python{}".format(VER_DOT)],
|
||||
PYTHON_VE_DATA,
|
||||
"console",
|
||||
("python.file", [".py"], '"%1"', "Python File", PY_PNG),
|
||||
("python.file", [".py"], '"%1" %*', "Python File", PY_PNG),
|
||||
)
|
||||
|
||||
add_application(
|
||||
|
|
@ -441,7 +441,7 @@ def get_appxmanifest(ns):
|
|||
["pythonw", "pythonw{}".format(VER_MAJOR), "pythonw{}".format(VER_DOT)],
|
||||
PYTHONW_VE_DATA,
|
||||
"windows",
|
||||
("python.windowedfile", [".pyw"], '"%1"', "Python File (no console)", PY_PNG),
|
||||
("python.windowedfile", [".pyw"], '"%1" %*', "Python File (no console)", PY_PNG),
|
||||
)
|
||||
|
||||
if ns.include_pip and ns.include_launchers:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue