Skip to content
Permalink
Browse files

Move generated Python code to separate module

  • Loading branch information
akx committed Jan 14, 2020
1 parent 228c653 commit 26f568e692efa5676eb30f63c11194a89e1c12ec
Showing with 263 additions and 262 deletions.
  1. +2 −2 disOps/disOps.py
  2. +1 −260 python/distorm3/__init__.py
  3. +260 −0 python/distorm3/_generated.py
@@ -143,9 +143,9 @@ def WriteMnemonicsC(mnemonicsIds):
def WriteMnemonicsPython(mnemonicsIds):
""" 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)
d = CreateMnemonicsPython(mnemonicsIds)
old = open(path, "r").read()

0 comments on commit 26f568e

Please sign in to comment.
You can’t perform that action at this time.