Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed No module named 'convert_x86' error #29

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added interp_x86/__init__.py
Empty file.
4 changes: 2 additions & 2 deletions interp_x86/eval_x86.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

from utils import *

from convert_x86 import convert_program
from parser_x86 import x86_parser, x86_parser_instrs
from .convert_x86 import convert_program
from .parser_x86 import x86_parser, x86_parser_instrs


def interp_x86(program):
Expand Down
2 changes: 1 addition & 1 deletion utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1186,7 +1186,7 @@ def compile_and_test(compiler, compiler_name,
total_passes = 0
successful_passes = 0
successful_test = 0
from eval_x86 import interp_x86
from interp_x86.eval_x86 import interp_x86

program_root = os.path.splitext(program_filename)[0]
with open(program_filename) as source:
Expand Down