mirror of
https://github.com/lllyasviel/stable-diffusion-webui-forge.git
synced 2026-04-26 17:29:09 +00:00
Fix ruff linter (#137)
* Fix ruff linter * Remove unused imports * Remove unused imports
This commit is contained in:
@@ -3,6 +3,7 @@ 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():
|
||||
@@ -64,8 +65,6 @@ 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")
|
||||
|
||||
Reference in New Issue
Block a user