Files
Fannovel16-ComfyUI-MotionDiff/install.py
T
2023-10-16 19:57:18 +07:00

11 lines
360 B
Python

import os
from pathlib import Path
import sys
s_param = '-s' if "python_embeded" in sys.executable else ''
with open(Path(__file__).parent / "requirements.txt", 'r') as f:
for package in f.readlines():
package = package.strip()
print(f"Installing {package}...")
os.system(f'"{sys.executable}" {s_param} -m pip install {package}')