MCPcopy
hub / github.com/pyinstaller/pyinstaller / _write_module

Function _write_module

tests/unit/test_modulegraph_more.py:99–103  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

97 EXTENSION_SUFFIX = importlib.machinery.EXTENSION_SUFFIXES[0]
98
99 def _write_module(*args):
100 module_file = tmp_path.joinpath(*args)
101 module_file.parent.mkdir(parents=True, exist_ok=True)
102 module_file.write_text('###', encoding='utf-8')
103 return module_file
104
105 def create_package_files(test_case):
106 m = _write_module('myextpkg', '__init__' + EXTENSION_SUFFIX)

Callers 1

create_package_filesFunction · 0.85

Calls 1

mkdirMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…