02-29-2020, 06:16 PM
I don't think that will work. You prolly end up with below after string.split(' ')
OP could try the following to see if an error occurs
Code:
['mpc', 'load', '"My', 'Playlist"']
OP could try the following to see if an error occurs
Code:
pi@rp3:~ $ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> import subprocess
>>> subprocess.call(['mpc', 'load', 'Default Playlist'])