Add mplayer.exe expandedpath

This commit is contained in:
Etoh 2013-10-13 22:44:00 +01:00
parent 3aba8e926d
commit 33f21ecb87

View File

@ -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(':'):