aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-28 18:17:24 +0100
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2020-12-28 18:17:24 +0100
commit1c912a59c73a1ecb4c8b4d5d16bfc097d63d8546 (patch)
tree569a35810d19ce128c3a518e78af22ad91de0dab /pyGHDL
parentcb9c6cf42ecfd89272d7cb7d3c7f490d4147b6e3 (diff)
downloadghdl-1c912a59c73a1ecb4c8b4d5d16bfc097d63d8546.tar.gz
ghdl-1c912a59c73a1ecb4c8b4d5d16bfc097d63d8546.tar.bz2
ghdl-1c912a59c73a1ecb4c8b4d5d16bfc097d63d8546.zip
Improved testcase ' SimpleEntity' for pyGHDL.dom.
Diffstat (limited to 'pyGHDL')
-rw-r--r--pyGHDL/dom/Misc.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pyGHDL/dom/Misc.py b/pyGHDL/dom/Misc.py
index ab47576fc..82c1f8fac 100644
--- a/pyGHDL/dom/Misc.py
+++ b/pyGHDL/dom/Misc.py
@@ -45,10 +45,12 @@ class Document(VHDLModel_Document):
__ghdlSourceFileEntry: Any
__ghdlFile: Any
- def __init__(self, path : Path = None):
+ def __init__(self, path : Path = None, dontParse: bool = False):
super().__init__(path)
self.__ghdl_init()
+ if (dontParse == False):
+ self.parse()
def __ghdl_init(self):
# Read input file