Fixed issue with relative paths in mplayer/mpv

This commit is contained in:
Uriziel 2014-03-27 00:57:49 +01:00
parent da17982866
commit a3af3f8c1d
1 changed files with 3 additions and 0 deletions

View File

@ -202,6 +202,9 @@ class MplayerPlayer(BasePlayer):
self.__playerController = playerController
if(not filePath):
raise ValueError()
if not os.path.isfile(filePath) and 'PWD' in os.environ:
filePath = os.environ['PWD'] + os.path.sep + filePath
filePath = os.path.realpath(filePath)
call = [playerPath, filePath]
call.extend(playerController.SLAVE_ARGS)
if(args):