23 lines
660 B
Python
23 lines
660 B
Python
import os
|
|
import toml
|
|
from .logger import niko_logger as logger
|
|
|
|
|
|
# Import the consolidated mappings from the nodes subfolder
|
|
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
|
|
|
|
# Confirmation message
|
|
toml_path = os.path.join(os.path.dirname(__file__), "pyproject.toml")
|
|
|
|
try:
|
|
with open(toml_path, "r") as f:
|
|
data = toml.load(f)
|
|
version = data["project"]["version"]
|
|
except (FileNotFoundError, KeyError):
|
|
version = "Unknown"
|
|
|
|
# Print with empty lines and version
|
|
logger.niko_log(f"\n\033[32mNikosis Preprocessor Nodes Loaded Successfully - v{version}\033[0m")
|