Improve mplayer expandedpath
This commit is contained in:
parent
2c454d2ade
commit
7701772ba0
@ -159,9 +159,13 @@ class MplayerPlayer(BasePlayer):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def getExpandedPath(playerPath):
|
def getExpandedPath(playerPath):
|
||||||
if(os.path.isfile(playerPath + u"\\mplayer.exe")):
|
if not os.path.isfile(playerPath):
|
||||||
playerPath += u"\\mplayer.exe"
|
if os.path.isfile(playerPath + u"mplayer.exe"):
|
||||||
return playerPath
|
playerPath += u"mplayer.exe"
|
||||||
|
return playerPath
|
||||||
|
elif os.path.isfile(playerPath + u"\\mplayer.exe"):
|
||||||
|
playerPath += u"\\mplayer.exe"
|
||||||
|
return playerPath
|
||||||
if os.access(playerPath, os.X_OK):
|
if os.access(playerPath, os.X_OK):
|
||||||
return playerPath
|
return playerPath
|
||||||
for path in os.environ['PATH'].split(':'):
|
for path in os.environ['PATH'].split(':'):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user