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

Function run_via_cpython

extra_tests/test_snippets.py:44–47  ·  view source on GitHub ↗

Simply invoke python itself on the script

(filename)

Source from the content-addressed store, hash-verified

42
43
44def run_via_cpython(filename):
45 """Simply invoke python itself on the script"""
46 env = os.environ.copy()
47 subprocess.check_call([sys.executable, filename], env=env)
48
49
50RUSTPYTHON_BINARY = os.environ.get("RUSTPYTHON") or os.path.join(

Callers 1

perform_testFunction · 0.85

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected