Improved vlc expandedpath

This commit is contained in:
Etoh 2013-10-14 10:25:44 +01:00
parent 8402a65c84
commit 3f588d3b36

View File

@ -175,7 +175,11 @@ class VlcPlayer(BasePlayer):
@staticmethod @staticmethod
def getExpandedPath(playerPath): def getExpandedPath(playerPath):
if(os.path.isfile(playerPath + u"\\vlc.exe")): if not os.path.isfile(playerPath):
if os.path.isfile(playerPath + u"vlc.exe"):
playerPath += u"vlc.exe"
return playerPath
elif os.path.isfile(playerPath + u"\\vlc.exe"):
playerPath += u"\\vlc.exe" playerPath += u"\\vlc.exe"
return playerPath return playerPath
if os.access(playerPath, os.X_OK): if os.access(playerPath, os.X_OK):