Skip to content

Commit

Permalink
Move generated Python code to separate module
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jan 27, 2020
1 parent 228c653 commit 26f568e
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 262 deletions.
4 changes: 2 additions & 2 deletions disOps/disOps.py
Expand Up @@ -143,9 +143,9 @@ def WriteMnemonicsC(mnemonicsIds):
def WriteMnemonicsPython(mnemonicsIds): def WriteMnemonicsPython(mnemonicsIds):
""" Write the dictionary of opcods to the python module. """ """ Write the dictionary of opcods to the python module. """
# #
# Fix Python dictionary inside __init__.py. # Fix Python dictionary inside distorm3/_generated.py.
# #
path = os.path.join("..", "python", "distorm3", "__init__.py") path = os.path.join("..", "python", "distorm3", "_generated.py")
print("- Try rewriting mnemonics for %s." % path) print("- Try rewriting mnemonics for %s." % path)
d = CreateMnemonicsPython(mnemonicsIds) d = CreateMnemonicsPython(mnemonicsIds)
old = open(path, "r").read() old = open(path, "r").read()
Expand Down

0 comments on commit 26f568e

Please sign in to comment.