Improved vlc expandedpath
This commit is contained in:
parent
8402a65c84
commit
3f588d3b36
@ -175,9 +175,13 @@ 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):
|
||||||
playerPath += u"\\vlc.exe"
|
if os.path.isfile(playerPath + u"vlc.exe"):
|
||||||
return playerPath
|
playerPath += u"vlc.exe"
|
||||||
|
return playerPath
|
||||||
|
elif os.path.isfile(playerPath + u"\\vlc.exe"):
|
||||||
|
playerPath += u"\\vlc.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