When starting a program via the command line using
'/dir/file with white space'
/dir/file\ with\ white\ space
>>> import subprocess >>> subprocess.call(['cat', 'file with space.txt'])
os.system, while simple to get started, breaks down when trying to do more complicated tasks.
I wish I had given up on
os.system much earlier and just got familiar with
subprocess. Well worth the time.