diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-12-12 14:35:51 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-12-12 14:50:05 +0100 |
commit | 03836b00aeddca2fd73f078d7850dc58be632466 (patch) | |
tree | c58ec03330d2bddd1c55cd81e3bfc81016139b3b /pyGHDL/cli | |
parent | f7b6325cb2b4ba5f722b5dceb3b36737a94fba47 (diff) | |
download | ghdl-03836b00aeddca2fd73f078d7850dc58be632466.tar.gz ghdl-03836b00aeddca2fd73f078d7850dc58be632466.tar.bz2 ghdl-03836b00aeddca2fd73f078d7850dc58be632466.zip |
Changed export decorator from pydecor to pyTooling.Decorators
Diffstat (limited to 'pyGHDL/cli')
-rwxr-xr-x | pyGHDL/cli/dom.py | 9 | ||||
-rw-r--r-- | pyGHDL/cli/lsp.py | 7 |
2 files changed, 8 insertions, 8 deletions
diff --git a/pyGHDL/cli/dom.py b/pyGHDL/cli/dom.py index 99f59c277..f1f860226 100755 --- a/pyGHDL/cli/dom.py +++ b/pyGHDL/cli/dom.py @@ -40,8 +40,9 @@ from textwrap import wrap, dedent from pyGHDL.dom import DOMException from pyGHDL.libghdl import LibGHDLException -from pydecor import export -from pyMetaClasses import Singleton +from pyTooling.Decorators import export +from pyTooling.MetaClasses import Singleton +from pyTooling.TerminalUI import LineTerminal, Severity from pyAttributes import Attribute from pyAttributes.ArgParseAttributes import ( ArgParseMixin, @@ -51,7 +52,6 @@ from pyAttributes.ArgParseAttributes import ( ArgumentAttribute, SwitchArgumentAttribute, ) -from pyTerminalUI import LineTerminal, Severity from pyGHDL import GHDLBaseException from pyGHDL.dom.NonStandard import Design, Document @@ -64,8 +64,7 @@ __email__ = "" __version__ = "0.0.0" __status__ = "Alpha" __license__ = "" -__all__ = [] -__api__ = __all__ + class SourceAttribute(Attribute): diff --git a/pyGHDL/cli/lsp.py b/pyGHDL/cli/lsp.py index fd9a8834a..694988153 100644 --- a/pyGHDL/cli/lsp.py +++ b/pyGHDL/cli/lsp.py @@ -48,10 +48,11 @@ from os import environ as os_environ, getcwd as os_getcwd import os from pathlib import Path -from pydecor import export +from pyTooling.Decorators import export +from pyGHDL import __version__ as ghdlVersion import pyGHDL.libghdl as libghdl -from pyGHDL.libghdl import version, errorout_console +from pyGHDL.libghdl import errorout_console from pyGHDL.lsp import LSPConnTrace from pyGHDL.lsp.lsp import LSPConn, LanguageProtocolServer from pyGHDL.lsp.vhdl_ls import VhdlLanguageServer @@ -85,7 +86,7 @@ def _generateCLIParser() -> ArgumentParser: parser = ArgumentParser( description="VHDL Language Protocol Server. Find info about clients in `ghdl/ghdl-language-server <https://github.com/ghdl/ghdl-language-server>`__." ) - parser.add_argument("--version", "-V", action="version", version="%(prog)s " + version.__version__) + parser.add_argument("--version", "-V", action="version", version="%(prog)s " + ghdlVersion) parser.add_argument("--verbose", "-v", action="count", default=0, help="Show debug output") parser.add_argument("--log-file", help="Redirect logs to the given file instead of stderr") parser.add_argument( |