The Python Oracle

How do I execute a program from Python? os.system fails due to spaces in path

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Meadow

--

Chapters
00:00 Question
01:38 Accepted answer (Score 317)
02:02 Answer 2 (Score 85)
02:48 Answer 3 (Score 35)
03:25 Answer 4 (Score 20)
04:03 Thank you

--

Full question
https://stackoverflow.com/questions/2040...

Accepted answer links:
[subprocess.call]: http://docs.python.org/2/library/subproc...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #shellexecute

#avk47