I used subprocess.popen (for open webdriver) in GUI(pysimplegui) python script, it is working fine on pycharm and when I make its exe file is making its clone while clicking on a specific buttonenter image description here
elif event == 'web':
subprocess.Popen([sys.executable, "sele.py"])
please help me on this how to handle this thing or how to create subprocess correctly the reason why I am not making a function for it is because if I will do this my button will stuck until the whole function is done thanks
I try different type of subprocess and multithreading but nothing works for me