Skip to content

Commit

Permalink
removed the need for converter scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nologic committed May 26, 2015
1 parent 206146f commit 546f2bc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 32 deletions.
16 changes: 0 additions & 16 deletions arm.py

This file was deleted.

18 changes: 18 additions & 0 deletions idaref.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,27 @@ def __init__(self):

def create(self, path="."):
doc_opts = glob.glob(path + os.sep + "*.sqlite")
raw_docs = glob.glob(path + os.sep + "*.sql")

if(len(doc_opts) != len(raw_docs)):
for input in raw_docs:
print "converting: %s" % input
output = input + "ite"

in_file = open(input)
sql = in_file.read()
in_file.close()

con = sq.connect(output)
con.executescript(sql)
con.close()

doc_opts.append(output)
print "Produced %s" % output

if(len(doc_opts) == 0):
Warning("Couldn't find any databases in " + path)
return

dbpath = doc_opts[0]
if(len(doc_opts) > 1):
Expand Down
16 changes: 0 additions & 16 deletions x86-64.py

This file was deleted.

0 comments on commit 546f2bc

Please sign in to comment.