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

Method make_script

Lib/test/test_argparse.py:7195–7201  ·  view source on GitHub ↗
(self, dirname, basename, *, compiled=False)

Source from the content-addressed store, hash-verified

7193 os.mkdir(self.dirname)
7194
7195 def make_script(self, dirname, basename, *, compiled=False):
7196 script_name = script_helper.make_script(dirname, basename, self.source)
7197 if not compiled:
7198 return script_name
7199 pyc_file = import_helper.make_legacy_pyc(script_name, allow_compile=True)
7200 os.remove(script_name)
7201 return pyc_file
7202
7203 def make_zip_script(self, script_name, name_in_zip=None):
7204 zip_name, _ = script_helper.make_zip_script(self.dirname, 'test_zip',

Callers 11

test_scriptMethod · 0.95
test_directoryMethod · 0.95
test_moduleMethod · 0.95
test_packageMethod · 0.95
test_zipfileMethod · 0.95
test_EOFS_with_fileMethod · 0.45
add_moduleMethod · 0.45

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected