mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 09:18:32 +00:00
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:
commit
4ef13076e9
2 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue