So, im trying to use subprocess.Popen() to open a python script in CMD the "complicated" way. Although I cant get it to open due to a space in my PC name. Ive tried using Double Quotes and Single Quotes vut it still doesn't work.
Heres the line of code im trying to execute.
subprocess.Popen("cmd.exe /C python '\Users\Terra Byte\Desktop\jdos3\JDOS3\SYS64\bootthingy.py'")
As you can see, I'm using single quotes to wrap the directory path, yet this is the error I get when executing.
C:\Users\Terra Byte\Desktop\jdos3\JDOS3>python: can't open file ''\Users\Terra': [Errno 2] No such file or directory
It seems to be completely ignoring my single quotes.