cli options
py2scratch.py [-h] [--native] [--stdin-file STDIN_FILE] [--file LOCAL[=VIRTUAL]] [--presentation] source output
| Option | What it does |
|---|---|
source |
Python file to compile |
output |
.sb3 file to write |
--native |
Emit direct blocks for the original numeric subset instead of the full runtime |
--stdin-file FILE |
Embed a UTF-8 text file as standard input |
--file LOCAL[=VIRTUAL] |
Embed a local file into the project virtual filesystem. Without =VIRTUAL the file keeps its name. Repeat for more files |
--presentation |
Expand the output list and clear temporary data on exit |
On success the compiler prints the output path. Compile errors, syntax errors and file errors exit with code 1.