Skip to content

Commit

Permalink
ui: python2 requires relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
1138-4EB committed Oct 21, 2019
1 parent a46bd50 commit dad251c
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion vunit/ui/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from os import environ
from logging import getLogger
from vunit.vhdl_standard import VHDL
from ..vhdl_standard import VHDL


LOGGER = getLogger(__name__)
Expand Down
16 changes: 8 additions & 8 deletions vunit/ui/library.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
from os.path import abspath
from glob import glob
from fnmatch import fnmatch
from vunit.simulator_interface import is_string_not_iterable
from vunit.source_file import file_type_of, FILE_TYPES, VERILOG_FILE_TYPES
from vunit.builtins import add_verilog_include_dir

from vunit.ui.common import check_not_empty
from vunit.ui.source import SourceFile, SourceFileList
from vunit.ui.testbench import TestBench
from vunit.ui.packagefacade import PackageFacade
from ..simulator_interface import is_string_not_iterable
from ..source_file import file_type_of, FILE_TYPES, VERILOG_FILE_TYPES
from ..builtins import add_verilog_include_dir

from .common import check_not_empty
from .source import SourceFile, SourceFileList
from .testbench import TestBench
from .packagefacade import PackageFacade


class Library(object):
Expand Down
2 changes: 1 addition & 1 deletion vunit/ui/packagefacade.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"""

from os.path import join, splitext
from vunit.com import codec_generator
from ..com import codec_generator


class PackageFacade(object):
Expand Down
2 changes: 1 addition & 1 deletion vunit/ui/source.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
UI classes SourceFile and SourceFileList
"""

from vunit import ostools
from .. import ostools


class SourceFileList(list):
Expand Down
2 changes: 1 addition & 1 deletion vunit/ui/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
UI class Test
"""

from vunit.ui.common import lower_generics
from .common import lower_generics


class Test(object):
Expand Down
4 changes: 2 additions & 2 deletions vunit/ui/testbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"""

from fnmatch import fnmatch
from vunit.ui.common import lower_generics
from vunit.ui.test import Test
from .common import lower_generics
from .test import Test


class TestBench(object):
Expand Down
50 changes: 25 additions & 25 deletions vunit/ui/vunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,31 @@
import os
from os.path import exists, abspath, join, basename, normpath, dirname
from fnmatch import fnmatch
from vunit.database import PickledDataBase, DataBase
from vunit import ostools
from vunit.vunit_cli import VUnitCLI
from vunit.simulator_factory import SIMULATOR_FACTORY
from vunit.simulator_interface import SimulatorInterface
from vunit.color_printer import COLOR_PRINTER, NO_COLOR_PRINTER

from vunit.project import Project
from vunit.test_runner import TestRunner
from vunit.test_report import TestReport
from vunit.test_bench_list import TestBenchList
from vunit.exceptions import CompileError
from vunit.location_preprocessor import LocationPreprocessor
from vunit.check_preprocessor import CheckPreprocessor
from vunit.parsing.encodings import HDL_FILE_ENCODING
from vunit.builtins import Builtins
from vunit.vhdl_standard import VHDL

from vunit.ui.common import LOGGER, select_vhdl_standard, check_not_empty
from vunit.ui.source import SourceFile, SourceFileList
from vunit.ui.test import Test # pylint: disable=unused-import
from vunit.ui.testbench import TestBench # pylint: disable=unused-import
from vunit.ui.packagefacade import PackageFacade # pylint: disable=unused-import
from vunit.ui.library import Library
from vunit.ui.results import Results
from ..database import PickledDataBase, DataBase
from .. import ostools
from ..vunit_cli import VUnitCLI
from ..simulator_factory import SIMULATOR_FACTORY
from ..simulator_interface import SimulatorInterface
from ..color_printer import COLOR_PRINTER, NO_COLOR_PRINTER

from ..project import Project
from ..test_runner import TestRunner
from ..test_report import TestReport
from ..test_bench_list import TestBenchList
from ..exceptions import CompileError
from ..location_preprocessor import LocationPreprocessor
from ..check_preprocessor import CheckPreprocessor
from ..parsing.encodings import HDL_FILE_ENCODING
from ..builtins import Builtins
from ..vhdl_standard import VHDL

from .common import LOGGER, select_vhdl_standard, check_not_empty
from .source import SourceFile, SourceFileList
from .test import Test # pylint: disable=unused-import
from .testbench import TestBench # pylint: disable=unused-import
from .packagefacade import PackageFacade # pylint: disable=unused-import
from .library import Library
from .results import Results


class VUnit( # pylint: disable=too-many-instance-attributes, too-many-public-methods
Expand Down

0 comments on commit dad251c

Please sign in to comment.