Merge pull request #239 from williballenthin/python-relative-import-paths

python bindings: use relative paths for imports to support py3
This commit is contained in:
Nguyen Anh Quynh 2015-11-03 09:58:10 +08:00
commit 4ef13076e9
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
# Unicorn Python bindings, by Nguyen Anh Quynnh <aquynh@gmail.com>
from . import arm_const, arm64_const, mips_const, sparc_const, m68k_const, x86_const
from unicorn_const import *
from unicorn import Uc, uc_version, uc_arch_supported, version_bind, debug, UcError
from .unicorn_const import *
from .unicorn import Uc, uc_version, uc_arch_supported, version_bind, debug, UcError

View file

@ -4,7 +4,7 @@ _python2 = sys.version_info[0] < 3
if _python2:
range = xrange
from . import arm_const, arm64_const, mips_const, sparc_const, m68k_const, x86_const
from unicorn_const import *
from .unicorn_const import *
import ctypes, ctypes.util, sys
from platform import system