Hello,

I'm trying to start windows media player using Qprocess (for a windows xp operating system). However, when I run my code, it won't start. I am assuming it is because of the spaces in the path name. How do I fix my code so that it will work with paths that have spaces in it? I am using pyqt4. Thank you in advance.

Qt Code:
  1. if sys.platform == 'win32':
  2. p = QtCore.QProcess(self)
  3. p.setWorkingDirectory("C:\Program Files\Windows Media Player")
  4. p.start('wmplayer')
To copy to clipboard, switch view to plain text mode