From 33f21ecb878599ddb3bcaf8918395dd89ec981b5 Mon Sep 17 00:00:00 2001 From: Etoh Date: Sun, 13 Oct 2013 22:44:00 +0100 Subject: [PATCH] Add mplayer.exe expandedpath --- syncplay/players/mplayer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syncplay/players/mplayer.py b/syncplay/players/mplayer.py index 6e56e7a..5b9c30e 100644 --- a/syncplay/players/mplayer.py +++ b/syncplay/players/mplayer.py @@ -159,6 +159,9 @@ class MplayerPlayer(BasePlayer): @staticmethod def getExpandedPath(playerPath): + if(os.path.isfile(playerPath + u"\\mplayer.exe")): + playerPath += u"\\mplayer.exe" + return playerPath if os.access(playerPath, os.X_OK): return playerPath for path in os.environ['PATH'].split(':'):