temp_py_file
runner.temp_py_file(py_file, *, keep)Context manager that ensures file is removed on exit unless keep=True.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| py_file | Path | Path to the .py file. | required |
| keep | bool | Whether to keep the temporary .py file. | required |