From 7386dc6f0377362b143087953d36e8a8e0a36b4e Mon Sep 17 00:00:00 2001 From: Patrick Ulbrich Date: Sat, 31 Jan 2015 14:16:12 +0100 Subject: [PATCH] Soundplugin: fix path of soundfile --- Mailnag/plugins/soundplugin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Mailnag/plugins/soundplugin.py b/Mailnag/plugins/soundplugin.py index c7fbabb..822d86d 100644 --- a/Mailnag/plugins/soundplugin.py +++ b/Mailnag/plugins/soundplugin.py @@ -119,10 +119,8 @@ def gstplay(filename): _gst_initialized = True try: - cwd = os.getcwd() - location = os.path.join(cwd, filename) ply = Gst.ElementFactory.make("playbin", "player") - ply.set_property("uri", "file://" + location) + ply.set_property("uri", "file://" + os.path.abspath(filename)) pt = _GstPlayThread(ply) pt.start() except: