Commit 61a7eac1 authored by Rafaël Carré's avatar Rafaël Carré

Fix glade search path - thanks to dionoea

parent c5b21fdc
......@@ -290,7 +290,7 @@ def GetPlayStatus(widget):
# loads glade file from the directory where the script is,
# so we can use /path/to/mpris.py to execute it.
import sys
xml = gtk.glade.XML(os.path.dirname(sys.argv[0]) + '/mpris.glade')
xml = gtk.glade.XML(os.path.join(os.path.dirname(sys.argv[0]) , 'mpris.glade'))
# ui setup
bt_close = xml.get_widget('close')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment