Jul-08-2018, 04:46 AM
I'm trying to pass an argument to the popen function below. I've tried various permutations of syntax, and still can't get it working. What I ultimately want to do is pass an argument to the script, i.e., sys.argv. Can someone show me the syntax for this?
-Thanks
-Thanks
import subprocess myfile = "C:\Users\joe\Pictures\Spirit Animals.jpg" subprocess.Popen(['C:\Program Files (x86)\XYplorer\XYplorer.exe', "myfile"])