mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
Reorganize python files
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from .lora_manager import LoraManager
|
||||
from .nodes.lora_loader import LoraManagerLoader
|
||||
from .py.lora_manager import LoraManager
|
||||
from .py.nodes.lora_loader import LoraManagerLoader
|
||||
|
||||
NODE_CLASS_MAPPINGS = {
|
||||
LoraManagerLoader.NAME: LoraManagerLoader
|
||||
|
||||
0
py/__init__.py
Normal file
0
py/__init__.py
Normal file
@@ -10,8 +10,8 @@ class Config:
|
||||
"""Global configuration for LoRA Manager"""
|
||||
|
||||
def __init__(self):
|
||||
self.templates_path = os.path.join(os.path.dirname(__file__), 'templates')
|
||||
self.static_path = os.path.join(os.path.dirname(__file__), 'static')
|
||||
self.templates_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'templates')
|
||||
self.static_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'static')
|
||||
# 路径映射字典, target to link mapping
|
||||
self._path_mappings = {}
|
||||
# 静态路由映射字典, target to route mapping
|
||||
@@ -7,7 +7,6 @@ from watchdog.events import FileSystemEventHandler, FileCreatedEvent, FileDelete
|
||||
from typing import List
|
||||
from threading import Lock
|
||||
from .lora_scanner import LoraScanner
|
||||
import platform
|
||||
from ..config import config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
@@ -1,7 +1,6 @@
|
||||
import json
|
||||
import os
|
||||
import logging
|
||||
import time
|
||||
import asyncio
|
||||
import shutil
|
||||
from typing import List, Dict, Optional
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Dict, Optional
|
||||
from typing import Optional
|
||||
|
||||
# Base model mapping based on version string
|
||||
BASE_MODEL_MAPPING = {
|
||||
Reference in New Issue
Block a user