diff options
Diffstat (limited to 'pyGHDL/dom/Misc.py')
-rw-r--r-- | pyGHDL/dom/Misc.py | 4 |
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 |