-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.py
More file actions
32 lines (26 loc) · 1 KB
/
Copy pathinstall.py
File metadata and controls
32 lines (26 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
Auto-install dependencies for Augment nodes.
ComfyUI will run this automatically when the node pack is loaded.
"""
import subprocess
import sys
import os
def install():
"""Install required packages."""
requirements_path = os.path.join(os.path.dirname(__file__), "requirements.txt")
if not os.path.exists(requirements_path):
print("[augment] No requirements.txt found, skipping dependency install")
return
print("[augment] Checking dependencies...")
try:
subprocess.check_call(
[sys.executable, "-m", "pip", "install", "-r", requirements_path, "--quiet"],
stdout=subprocess.DEVNULL,
stderr=subprocess.PIPE
)
print("[augment] ✓ Dependencies installed/verified")
except subprocess.CalledProcessError as e:
print(f"[augment] ⚠ Warning: Could not install dependencies: {e}")
print("[augment] Please manually run: pip install -r requirements.txt")
if __name__ == "__main__":
install()