mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-05 19:05:34 +00:00
python bindings: use relative paths for imports to support py3
This commit is contained in:
parent
aaa53f7e6b
commit
5eb75c311e
|
@ -1,4 +1,4 @@
|
||||||
# Unicorn Python bindings, by Nguyen Anh Quynnh <aquynh@gmail.com>
|
# 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 . import arm_const, arm64_const, mips_const, sparc_const, m68k_const, x86_const
|
||||||
from unicorn_const import *
|
from .unicorn_const import *
|
||||||
from unicorn import Uc, uc_version, uc_arch_supported, version_bind, debug, UcError
|
from .unicorn import Uc, uc_version, uc_arch_supported, version_bind, debug, UcError
|
||||||
|
|
|
@ -4,7 +4,7 @@ _python2 = sys.version_info[0] < 3
|
||||||
if _python2:
|
if _python2:
|
||||||
range = xrange
|
range = xrange
|
||||||
from . import arm_const, arm64_const, mips_const, sparc_const, m68k_const, x86_const
|
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
|
import ctypes, ctypes.util, sys
|
||||||
from platform import system
|
from platform import system
|
||||||
|
|
Loading…
Reference in a new issue