do not use spawnvp under windows (user will have to give the full path to the application)

This commit is contained in:
Yann Leboulanger 2005-03-10 17:19:55 +00:00
parent 0bae187b4c
commit 49e6daabd7
1 changed files with 4 additions and 1 deletions

View File

@ -3026,7 +3026,10 @@ class plugin:
args = conf.split()
app = args[0]
args.append(url)
os.spawnvp(os.P_NOWAIT, app, args)
if os.name == 'posix':
os.spawnvp(os.P_NOWAIT, app, args)
else:
os.spawnv(os.P_NOWAIT, app, args)
def play_timeout(self, pid):
pidp, r = os.waitpid(pid, os.WNOHANG)