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 .py.lora_manager import LoraManager
|
||||||
from .nodes.lora_loader import LoraManagerLoader
|
from .py.nodes.lora_loader import LoraManagerLoader
|
||||||
|
|
||||||
NODE_CLASS_MAPPINGS = {
|
NODE_CLASS_MAPPINGS = {
|
||||||
LoraManagerLoader.NAME: LoraManagerLoader
|
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"""
|
"""Global configuration for LoRA Manager"""
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.templates_path = os.path.join(os.path.dirname(__file__), 'templates')
|
self.templates_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'templates')
|
||||||
self.static_path = os.path.join(os.path.dirname(__file__), 'static')
|
self.static_path = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'static')
|
||||||
# 路径映射字典, target to link mapping
|
# 路径映射字典, target to link mapping
|
||||||
self._path_mappings = {}
|
self._path_mappings = {}
|
||||||
# 静态路由映射字典, target to route mapping
|
# 静态路由映射字典, target to route mapping
|
||||||
@@ -7,7 +7,6 @@ from watchdog.events import FileSystemEventHandler, FileCreatedEvent, FileDelete
|
|||||||
from typing import List
|
from typing import List
|
||||||
from threading import Lock
|
from threading import Lock
|
||||||
from .lora_scanner import LoraScanner
|
from .lora_scanner import LoraScanner
|
||||||
import platform
|
|
||||||
from ..config import config
|
from ..config import config
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
@@ -1,7 +1,6 @@
|
|||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
import time
|
|
||||||
import asyncio
|
import asyncio
|
||||||
import shutil
|
import shutil
|
||||||
from typing import List, Dict, Optional
|
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 based on version string
|
||||||
BASE_MODEL_MAPPING = {
|
BASE_MODEL_MAPPING = {
|
||||||
Reference in New Issue
Block a user