From dd30ebd0c1021ec7ab09d091cb67d27101734e0e Mon Sep 17 00:00:00 2001 From: MrNbaYoh Date: Wed, 20 Sep 2017 19:42:20 +0200 Subject: [PATCH] Rename pyRop.py to pyrop.py --- pyrop/pyrop.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pyrop/pyrop.py diff --git a/pyrop/pyrop.py b/pyrop/pyrop.py new file mode 100644 index 0000000..63a8b1f --- /dev/null +++ b/pyrop/pyrop.py @@ -0,0 +1,17 @@ +import sys +from ast import * +from builder_base import * +from base_modules import * + +cmdargs = sys.argv +if len(cmdargs) != 3: + print("Usage: pyRop.py input_file output_file") + +builder = BasicBuilder.create('Test', IncludeModule, AreaModule, LabelModule, PopModule) +builder.build(cmdargs[1]) + +os.makedirs(os.path.dirname(os.path.abspath(cmdargs[2])), exist_ok=True) +output_file = open(cmdargs[2], 'wb') +output_file.write(bytes(builder.chain)) +output_file.close() +