mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-23 14:12:11 -03:00
refactor: unify standalone mode check using environment variable
This commit is contained in:
@@ -10,6 +10,10 @@ import sys
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
# Set environment variable to indicate standalone mode
|
||||
# HF_HUB_DISABLE_TELEMETRY is from ComfyUI main.py
|
||||
standalone_mode = os.environ.get("HF_HUB_DISABLE_TELEMETRY", "0") == "0"
|
||||
|
||||
def main():
|
||||
"""Run pytest from the tests directory to avoid import issues."""
|
||||
# Get the script directory
|
||||
|
||||
Reference in New Issue
Block a user