Add vlc.exe expandedpath

This commit is contained in:
Etoh 2013-10-13 22:35:35 +01:00
parent 461ca0f442
commit 3aba8e926d

View File

@ -175,6 +175,9 @@ class VlcPlayer(BasePlayer):
@staticmethod
def getExpandedPath(playerPath):
if(os.path.isfile(playerPath + u"\\vlc.exe")):
playerPath += u"\\vlc.exe"
return playerPath
if os.access(playerPath, os.X_OK):
return playerPath
for path in os.environ['PATH'].split(':'):