MCPcopy
hub / github.com/Nuitka/Nuitka / replaceRootModule

Function replaceRootModule

nuitka/ModuleRegistry.py:63–74  ·  view source on GitHub ↗
(old, new)

Source from the content-addressed store, hash-verified

61
62
63def replaceRootModule(old, new):
64 # Using global here, as this is really a singleton, in the form of a module,
65 # pylint: disable=global-statement
66 global root_modules
67 new_root_modules = OrderedSet()
68
69 for module in root_modules:
70 new_root_modules.add(module if module is not old else new)
71
72 assert len(root_modules) == len(new_root_modules)
73
74 root_modules = new_root_modules
75
76
77def getUncompiledModules():

Callers 1

Calls 3

addMethod · 0.95
OrderedSetClass · 0.90
lenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…