MCPcopy Create free account
hub / github.com/python/cpython / add_alias

Function add_alias

PC/layout/support/appxmanifest.py:284–290  ·  view source on GitHub ↗
(xml, appid, alias, subsystem="windows")

Source from the content-addressed store, hash-verified

282
283
284def add_alias(xml, appid, alias, subsystem="windows"):
285 app = _get_app(xml, appid)
286 e = find_or_add(app, "m:Extensions")
287 e = find_or_add(e, "uap5:Extension", ("Category", "windows.appExecutionAlias"))
288 e = find_or_add(e, "uap5:AppExecutionAlias")
289 e.set(ET.QName(APPXMANIFEST_NS["desktop4"], "Subsystem"), subsystem)
290 e = find_or_add(e, "uap5:ExecutionAlias", ("Alias", alias))
291
292
293def add_file_type(xml, appid, name, suffix, parameters='"%1"', info=None, logo=None):

Callers 1

add_applicationFunction · 0.70

Calls 3

_get_appFunction · 0.85
find_or_addFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…