837 else:
838 x: int = int(s.strip()) - 1
839 if x < len_first_dim:
840 selected_index.append(x)
841 except:
842 pass
843
844 if selected_index:
845 print(f"ImageSelector: selected: {len(selected_index)} images")
1 # Made by Davemane42#0042 for ComfyUI 2 import os 3 import subprocess 4 import importlib.util 5 import sys 6 import filecmp 7 import shutil 8
47 if spec is None:
48 print(f"Installing {package}...")
49 command = f'"{python}" -m pip install {package}'
50
51 result = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, env=os.environ)
52
53 if result.returncode != 0:
54 print(f"Couldn't install\nCommand: {command}\nError code: {result.returncode}")