diff options
| author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-12-24 10:14:04 +0100 | 
|---|---|---|
| committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-12-24 11:48:39 +0100 | 
| commit | 627d081090583be67093bd717cb54d1dde44b58c (patch) | |
| tree | 3e9b81c057adb450b93b970ae070213af1c35fe8 | |
| parent | 8b71d31b27837409affbd69842d03f1ae0ea6e29 (diff) | |
| download | ghdl-627d081090583be67093bd717cb54d1dde44b58c.tar.gz ghdl-627d081090583be67093bd717cb54d1dde44b58c.tar.bz2 ghdl-627d081090583be67093bd717cb54d1dde44b58c.zip | |
Added missing imports.
| -rw-r--r-- | pyGHDL/dom/NonStandard.py | 8 | ||||
| -rw-r--r-- | pyGHDL/libghdl/flags.py | 3 | 
2 files changed, 7 insertions, 4 deletions
| diff --git a/pyGHDL/dom/NonStandard.py b/pyGHDL/dom/NonStandard.py index 2066c190f..0a2ead728 100644 --- a/pyGHDL/dom/NonStandard.py +++ b/pyGHDL/dom/NonStandard.py @@ -66,8 +66,8 @@ from pyGHDL.libghdl import (      files_map_editor,      ENCODING,  ) -from pyGHDL.libghdl.flags import Flag_Gather_Comments, Flags, VhdlStandard -from pyGHDL.libghdl.vhdl import nodes, sem_lib, parse +from pyGHDL.libghdl.flags import Flag_Gather_Comments +from pyGHDL.libghdl.vhdl import nodes, sem_lib  from pyGHDL.libghdl.vhdl.parse import Flag_Parse_Parenthesis  from pyGHDL.dom import DOMException, Position  from pyGHDL.dom._Utils import GetIirKindOfNode, CheckForErrors, GetNameOfNode, GetDocumentationOfNode @@ -151,13 +151,13 @@ class Document(VHDLModel_Document):              # Parse input file              t1 = time.perf_counter() -            if vhdlVersion.IsAMS(): +            if vhdlVersion.IsAMS:                  flags.AMS_Vhdl.value = True              self.__ghdlFile = sem_lib.Load_File(self.__ghdlSourceFileEntry)              CheckForErrors() -            if vhdlVersion.IsAMS(): +            if vhdlVersion.IsAMS:                  flags.AMS_Vhdl.value = False              self.__ghdlProcessingTime = time.perf_counter() - t1 diff --git a/pyGHDL/libghdl/flags.py b/pyGHDL/libghdl/flags.py index 26d548cd5..580828d0a 100644 --- a/pyGHDL/libghdl/flags.py +++ b/pyGHDL/libghdl/flags.py @@ -33,6 +33,9 @@  # ============================================================================  from ctypes import c_bool, sizeof +from enum import unique, IntEnum + +from pyTooling.Decorators import export  from pyGHDL.libghdl import libghdl | 
