1
Fork 0
mirror of https://github.com/RGBCube/DML synced 2025-07-27 23:57:44 +00:00
DML/dml/run.py
2022-03-19 22:15:26 +03:00

12 lines
222 B
Python

from .encoder import decode
from .fileutils import decode_file
__all__ = ("run_file", "run")
def run(dml: str) -> None:
exec("".join(decode(dml)))
def run_file(fp: str) -> None:
exec("".join(decode_file(fp)))