From d8e38ada8537f7e3313b15649a1b81a37f963139 Mon Sep 17 00:00:00 2001 From: Kyler Date: Thu, 4 Dec 2025 21:51:22 -0700 Subject: [PATCH] Added info string constants --- SLS_Python/sls_py.pyi | 2 ++ SLS_Python/sls_py/__init__.py | 4 ++++ SLS_Python/sls_py/meta.py | 7 +++++-- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/SLS_Python/sls_py.pyi b/SLS_Python/sls_py.pyi index b9af9fe..3e7a96b 100644 --- a/SLS_Python/sls_py.pyi +++ b/SLS_Python/sls_py.pyi @@ -11,6 +11,8 @@ SLS_COMMIT: str INTERPRETER_NAME: str INTERPRETER_VER: int MODULE_TIMESTAMP: str +SLS_INFO_STRING_1: str +SLS_INFO_STRING_2: str class LexerInfo: diff --git a/SLS_Python/sls_py/__init__.py b/SLS_Python/sls_py/__init__.py index 3afd27f..8786d9c 100644 --- a/SLS_Python/sls_py/__init__.py +++ b/SLS_Python/sls_py/__init__.py @@ -7,6 +7,8 @@ from .meta import ( INTERPRETER_NAME, INTERPRETER_VER, MODULE_TIMESTAMP, + SLS_INFO_STRING_1, + SLS_INFO_STRING_2, ) from .lexer import ( @@ -36,6 +38,8 @@ __all__ = [ "INTERPRETER_NAME", "INTERPRETER_VER", "MODULE_TIMESTAMP", + "SLS_INFO_STRING_1", + "SLS_INFO_STRING_2", "LexerInfo", "TokenType", "Identifier", diff --git a/SLS_Python/sls_py/meta.py b/SLS_Python/sls_py/meta.py index a7304e2..7c51978 100644 --- a/SLS_Python/sls_py/meta.py +++ b/SLS_Python/sls_py/meta.py @@ -17,6 +17,9 @@ INTERPRETER_NAME = _impl.name.capitalize() INTERPRETER_VER = _impl.version.major MODULE_TIMESTAMP = timestamp +SLS_INFO_STRING_1 = f"YREA SLS ({SLS_NAME}) {SLS_VERSION} ({SLS_COMMIT})" +SLS_INFO_STRING_2 = f"Running on {INTERPRETER_NAME} {INTERPRETER_VER} at {MODULE_TIMESTAMP}" + def print_version() -> None: - print(f"YREA SLS ({SLS_NAME}) {SLS_VERSION} ({SLS_COMMIT})") - print(f"Running on {INTERPRETER_NAME} {INTERPRETER_VER} at {MODULE_TIMESTAMP}") + print(SLS_INFO_STRING_1) + print(SLS_INFO_STRING_2)