From a3af3f8c1d59cd5de3c4771f4b8de8923c309095 Mon Sep 17 00:00:00 2001 From: Uriziel Date: Thu, 27 Mar 2014 00:57:49 +0100 Subject: [PATCH] Fixed issue with relative paths in mplayer/mpv --- syncplay/players/mplayer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syncplay/players/mplayer.py b/syncplay/players/mplayer.py index 846a230..41fde9b 100644 --- a/syncplay/players/mplayer.py +++ b/syncplay/players/mplayer.py @@ -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):