Skip to content

Commit

Permalink
Rename pyRop.py to pyrop.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNbaYoh committed Sep 20, 2017
1 parent eaea69f commit dd30ebd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pyrop/pyrop.py
Original file line number Diff line number Diff line change
@@ -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()

0 comments on commit dd30ebd

Please sign in to comment.