mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-10 06:10:50 +08:00
replacement ./main.py
This commit is contained in:
parent
f8eea225d4
commit
f809217a6d
16
main.py
Normal file
16
main.py
Normal file
@ -0,0 +1,16 @@
|
||||
import asyncio
|
||||
import warnings
|
||||
from pathlib import Path
|
||||
|
||||
from comfy.component_model.folder_path_types import FolderNames
|
||||
|
||||
if __name__ == "__main__":
|
||||
warnings.warn("main.py is deprecated. Start comfyui by installing the package through the instructions in the README, not by cloning the repository.", DeprecationWarning)
|
||||
this_file_parent_dir = Path(__file__).parent
|
||||
from comfy.cmd.main import _start_comfyui
|
||||
from comfy.cmd.folder_paths import folder_names_and_paths # type: FolderNames
|
||||
fn: FolderNames = folder_names_and_paths
|
||||
fn.base_paths.clear()
|
||||
fn.base_paths.append(this_file_parent_dir)
|
||||
|
||||
asyncio.run(_start_comfyui(from_script_dir=this_file_parent_dir))
|
||||
Loading…
Reference in New Issue
Block a user