From 1c912a59c73a1ecb4c8b4d5d16bfc097d63d8546 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 28 Dec 2020 18:17:24 +0100 Subject: Improved testcase ' SimpleEntity' for pyGHDL.dom. --- pyGHDL/dom/Misc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pyGHDL') 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 -- cgit v1.2.3