chore: заменил импорты внутри пакета на относительные
This commit is contained in:
@ -4,10 +4,10 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
from typing import cast
|
from typing import cast
|
||||||
from dpdebugger import Debugger, DbgDict, DbgInstrDesc
|
from .dpdebugger import Debugger, DbgDict, DbgInstrDesc
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
import json
|
import json
|
||||||
import dbg_tui
|
from . import dbg_tui
|
||||||
|
|
||||||
def parse_dbg(dbg_json_dict: dict) -> DbgDict:
|
def parse_dbg(dbg_json_dict: dict) -> DbgDict:
|
||||||
"""
|
"""
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
from dpdebugger import Debugger
|
from .dpdebugger import Debugger
|
||||||
from vm import VMException, VMExceptionType, VMStatus
|
from .vm import VMException, VMExceptionType, VMStatus
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import cast
|
from typing import cast
|
||||||
import math
|
import math
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
хоть как-то помочь
|
хоть как-то помочь
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from vm import VM, VMException, Breakpoint, Condition, WORD_SIZE
|
from .vm import VM, VMException, Breakpoint, Condition, WORD_SIZE
|
||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import TypedDict, Callable, cast
|
from typing import TypedDict, Callable, cast
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
from vm import VM
|
from .vm import VM
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = ArgumentParser(
|
parser = ArgumentParser(
|
||||||
|
|||||||
@ -2,7 +2,7 @@ from dataclasses import dataclass
|
|||||||
from typing import ClassVar, Callable
|
from typing import ClassVar, Callable
|
||||||
from ctypes import c_uint32, c_int32
|
from ctypes import c_uint32, c_int32
|
||||||
import struct
|
import struct
|
||||||
from optable import OPCODES, OpcodeDescription, OpL, OpA, OpF, OpD
|
from .optable import OPCODES, OpcodeDescription, OpL, OpA, OpF, OpD
|
||||||
from enum import IntFlag, Enum, auto
|
from enum import IntFlag, Enum, auto
|
||||||
|
|
||||||
WORD_SIZE: int = 4
|
WORD_SIZE: int = 4
|
||||||
|
|||||||
Reference in New Issue
Block a user