import sys,time
from pathlib import Path
root=Path(sys.argv[1]); sys.path.insert(0,str(root/'luraph_compiler'))
import compiler
art=compiler.compile_source('local x=1\nreturn x\n',key=123,hardened=True,binary=True)
Path(sys.argv[2]).write_text(art)
print(sys.argv[1],len(art))
