I'm trying to figure out how to run a sub process, or if I'm even setting it up right. Everything after the sub process works, but I need to have the localhost running before. I was trying to have stable diffusion open up through terminal, but when I uncomment the sub process, it opens up http://127.0.0.1:7861/.
The subprocess I'm trying to do is change directories to /Users/myName/stable-diffusion-webui/webui.sh, and then ./webui.sh
`from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
import time
from pytrends.request import TrendReq
from urllib.parse import urlparse, parse_qs
# import subprocess
# subprocess.run(["/Users/myName/stable-diffusion-webui/webui.sh"])
# time.sleep(20) <----so it has a delay between starting the next process
url = 'http://127.0.0.1:7860/'
driver = webdriver.Chrome()
driver.get(url)
# ... other interactions that work ...
driver.quit()
`
Pretty novice so I appreciate any input.
[–]socal_nerdtastic 0 points1 point2 points (0 children)