Revert "Fix ruff linter (#137)" (#143)

This reverts commit 6b3ad64388.
This commit is contained in:
Chenlei Hu
2024-02-09 02:24:04 +00:00
committed by GitHub
parent b49742354d
commit 388ca351f4
18 changed files with 39 additions and 25 deletions

View File

@@ -3,7 +3,6 @@ import sys
from modules.paths_internal import models_path, script_path, data_path, extensions_dir, extensions_builtin_dir, cwd # noqa: F401
import modules.safe # noqa: F401
import ldm_patched.utils.path_utils as ldm_patched_path_utils
def mute_sdxl_imports():
@@ -65,6 +64,8 @@ for d, must_exist, what, options in path_dirs:
paths[what] = d
import ldm_patched.utils.path_utils as ldm_patched_path_utils
ldm_patched_path_utils.base_path = data_path
ldm_patched_path_utils.models_dir = models_path
ldm_patched_path_utils.output_directory = os.path.join(data_path, "output")