From f70603e949a867b7f1780025fc3ce454866ca481 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" <128333288+ltdrdata@users.noreply.github.com> Date: Mon, 24 Jun 2024 20:20:53 +0900 Subject: [PATCH] refactor: remove prestartup_script.py (#89) move code to __init__.py prestartup script should be kept as lightweight as possible, minimizing imports to the maximum extent. It should be avoided whenever possible. --- __init__.py | 3 +++ prestartup_script.py | 14 -------------- 2 files changed, 3 insertions(+), 14 deletions(-) delete mode 100644 prestartup_script.py diff --git a/__init__.py b/__init__.py index 16364e6..48863ac 100644 --- a/__init__.py +++ b/__init__.py @@ -25,6 +25,9 @@ import os import sys +from .py.inc.lib.llm import MS_Llm + +MS_Llm.prestartup_script() python = sys.executable p310_plus = (sys.version_info >= (3, 10)) diff --git a/prestartup_script.py b/prestartup_script.py deleted file mode 100644 index 0908735..0000000 --- a/prestartup_script.py +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding:utf-8 -*- -# -### -# -# -# -### - -from custom_nodes.ComfyUI_MaraScott_Nodes.py.inc.lib.llm import MS_Llm - -print('\033[34m[MaraScott] \033[92mInitialization\033[0m') - -MS_Llm.prestartup_script()