From e35bc1bd8b4a60e5a3c18aeb5e8747a123c5a13b Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Tue, 17 May 2022 07:28:35 +0200 Subject: Workaround for Application class. --- pyGHDL/cli/dom.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pyGHDL/cli/dom.py b/pyGHDL/cli/dom.py index 1ec168842..2443beb54 100755 --- a/pyGHDL/cli/dom.py +++ b/pyGHDL/cli/dom.py @@ -41,7 +41,7 @@ from pyGHDL.dom import DOMException from pyGHDL.libghdl import LibGHDLException from pyTooling.Decorators import export -from pyTooling.MetaClasses import Singleton +from pyTooling.MetaClasses import ExtendedType from pyTooling.TerminalUI import LineTerminal, Severity from pyAttributes import Attribute from pyAttributes.ArgParseAttributes import ( @@ -118,10 +118,6 @@ class Application(LineTerminal, ArgParseMixin): def __init__(self, debug=False, verbose=False, quiet=False, sphinx=False): super().__init__(verbose, debug, quiet) - # Initialize the Terminal class - # -------------------------------------------------------------------------- - Singleton.Register(LineTerminal, self) - # Initialize DOM with an empty design # -------------------------------------------------------------------------- self._design = Design() @@ -347,7 +343,7 @@ def main(): # mccabe:disable=MC0001 try: # handover to a class instance - app = Application(debug, verbose, quiet) + app = Application() #debug, verbose, quiet) app.Run() app.exit() except PrettyPrintException as ex: -- cgit v1.2.3