MCPcopy Index your code
hub / github.com/RustPython/RustPython / make_script

Method make_script

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

Source from the content-addressed store, hash-verified

7060 os.mkdir(self.dirname)
7061
7062 def make_script(self, dirname, basename, *, compiled=False):
7063 script_name = script_helper.make_script(dirname, basename, self.source)
7064 if not compiled:
7065 return script_name
7066 py_compile.compile(script_name, doraise=True)
7067 os.remove(script_name)
7068 pyc_file = import_helper.make_legacy_pyc(script_name)
7069 return pyc_file
7070
7071 def make_zip_script(self, script_name, name_in_zip=None):
7072 zip_name, _ = script_helper.make_zip_script(self.dirname, 'test_zip',

Callers 12

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
ready_to_importFunction · 0.45

Calls 2

compileMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected