python bindings: use relative paths for imports to support py3

This commit is contained in:
Willi Ballenthin 2015-11-02 09:34:58 -05:00
parent aaa53f7e6b
commit 5eb75c311e
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