mirror of
https://github.com/Bing-su/adetailer.git
synced 2026-04-30 19:21:33 +00:00
feat: type hints
This commit is contained in:
14
sd_webui/paths.py
Normal file
14
sd_webui/paths.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if TYPE_CHECKING:
|
||||
import os
|
||||
|
||||
models_path = os.path.join(os.path.dirname(__file__), "1")
|
||||
script_path = os.path.join(os.path.dirname(__file__), "2")
|
||||
data_path = os.path.join(os.path.dirname(__file__), "3")
|
||||
extensions_dir = os.path.join(os.path.dirname(__file__), "4")
|
||||
extensions_builtin_dir = os.path.join(os.path.dirname(__file__), "5")
|
||||
else:
|
||||
from modules.paths import *
|
||||
Reference in New Issue
Block a user