Skip to content

Commit

Permalink
Merge pull request #90 from gleeda/master
Browse files Browse the repository at this point in the history
small fix to allow distorm3 to work with pyinstaller
  • Loading branch information
gdabah committed Aug 27, 2015
2 parents 25c9359 + 1185718 commit 15695df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/distorm3/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,15 @@

from ctypes import *
from os.path import split, join
import sys

#==============================================================================
# Load the diStorm DLL

# Guess the DLL filename and load the library.
_distorm_path = split(__file__)[0]
if hasattr(sys, '_MEIPASS'):
_distorm_path = sys._MEIPASS
potential_libs = ['distorm3.dll', 'libdistorm3.dll', 'libdistorm3.so', 'libdistorm3.dylib']
lib_was_found = False
for i in potential_libs:
Expand Down

0 comments on commit 15695df

Please sign in to comment.