Function
submodule
(parent, name, pkg_dir, content='')
Source from the content-addressed store, hash-verified
| 125 | |
| 126 | |
| 127 | def submodule(parent, name, pkg_dir, content=''): |
| 128 | path = os.path.join(pkg_dir, name + '.py') |
| 129 | with open(path, 'w', encoding='utf-8') as subfile: |
| 130 | subfile.write(content) |
| 131 | return '{}.{}'.format(parent, name), path |
| 132 | |
| 133 | |
| 134 | def get_code_from_pyc(pyc_path): |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…