MCPcopy Index your code
hub / github.com/python/cpython / add_application

Function add_application

PC/layout/support/appxmanifest.py:310–331  ·  view source on GitHub ↗
(
    ns, xml, appid, executable, aliases, visual_element, subsystem, file_types
)

Source from the content-addressed store, hash-verified

308
309
310def add_application(
311 ns, xml, appid, executable, aliases, visual_element, subsystem, file_types
312):
313 node = xml.find("m:Applications", APPXMANIFEST_NS)
314 suffix = "_d.exe" if ns.debug else ".exe"
315 app = ET.SubElement(
316 node,
317 ET.QName(APPXMANIFEST_NS[""], "Application"),
318 {
319 "Id": appid,
320 "Executable": executable + suffix,
321 "EntryPoint": "Windows.FullTrustApplication",
322 ET.QName(APPXMANIFEST_NS["desktop4"], "SupportsMultipleInstances"): "true",
323 },
324 )
325 if visual_element:
326 add_visual(app, None, visual_element)
327 for alias in aliases:
328 add_alias(app, None, alias + suffix, subsystem)
329 if file_types:
330 add_file_type(app, None, *file_types)
331 return app
332
333
334def _get_registry_entries(ns, root="", d=None):

Callers 1

get_appxmanifestFunction · 0.85

Calls 4

add_visualFunction · 0.85
add_file_typeFunction · 0.85
add_aliasFunction · 0.70
findMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…