I know similar questions are apearing all the time, but I have read all I can find. Solutions there helped me a bit, but I still cannot build correct full path that contains whitespaces.
After research I found solution adding \ and take everyting in Single quote. So this path is acceptable, as you can see below.
import os
os.system('\"C:\Program Files (x86)\remar\remar.exe"')
But, the problem is that I have to add console commande to it, so the path have to look like that:
C:\Program Files (x86)\remar\remar.exe --break-in=null
I tried to concatenate several parts of the path, but result is unacceptable for os.system()
expression.
I can't make something like that - "'\" + '"C:\Program Files' + ' ' + "(x86)\remar\remar.exe"'" + ' ' + '--break-in=null'
What shoud I do to get all parts together to one single correct path?
PS - I tried solutions from Windows path in Python , but it doesn't work for me. Maybe it's because python version. I'm using 3.61 BTW.