22 lines
381 B
Python
22 lines
381 B
Python
import sys
|
|
|
|
from phasmplatform.common.config import from_toml
|
|
|
|
from .runner import run_once
|
|
|
|
|
|
def main() -> int:
|
|
with open('config.toml', 'rb') as fil:
|
|
config = from_toml(fil)
|
|
|
|
del config
|
|
|
|
with open('/home/johan/projects/idea/phasm/examples/crc32.wasm', 'rb') as fil:
|
|
run_once(fil.read())
|
|
|
|
return 0
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main())
|