Added install script from ComfyUI-Manager
copies dp.js to the extension folder
This commit is contained in:
@@ -22,6 +22,14 @@ Nodes can be found in the Dynamic Prompts menu:
|
||||
|
||||
## Installation
|
||||
|
||||
### Using ComfyUI-Manager
|
||||
1. Install [ComfyUI-Manager](https://github.com/ltdrdata/ComfyUI-Manager) if it isn't already.
|
||||
2. Press Install Custom Nodes from the ComfyUI-Manager menu
|
||||
3. Search for dynamicprompts
|
||||
4. Click install
|
||||
|
||||
### Manual installation
|
||||
|
||||
Follow the steps below to install the ComfyUI-DynamicPrompts Library:
|
||||
|
||||
1. Clone the repository:
|
||||
@@ -32,9 +40,9 @@ Follow the steps below to install the ComfyUI-DynamicPrompts Library:
|
||||
```
|
||||
python -m pip install -r ComfyUI/custom_nodes/requirements.txt
|
||||
```
|
||||
3. Copy the dp.js file to the ComfyUI web extensions directory:
|
||||
3. Run install.py:
|
||||
```
|
||||
cp ComfyUI/custom_nodes/comfyui-dynamicprompts/web-extensions/dp.js ComfyUI/web/extensions
|
||||
python ComfyUI/custom_nodes/comfyui-dynamicprompts/install.py
|
||||
```
|
||||
4. `mkdir ComfyUI/wildcards`
|
||||
5. (Optional) download a wildcard collection and copy it into this new wildcards folder.
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
||||
|
||||
__version__ = "0.1.1"
|
||||
__version__ = "0.1.2"
|
||||
|
||||
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|
||||
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
import shutil
|
||||
from pathlib import Path
|
||||
|
||||
comfy_path = Path(__file__).parent.parent.parent
|
||||
extension_path = Path(__file__).parent
|
||||
js_path = comfy_path / "web" / "extensions"
|
||||
|
||||
|
||||
def copy_web_extensions():
|
||||
shutil.copy(extension_path / "web-extensions/dp.js", str(js_path))
|
||||
|
||||
|
||||
copy_web_extensions()
|
||||
Reference in New Issue
Block a user