Fix glade search path - thanks to dionoea

This commit is contained in:
Rafaël Carré 2008-05-18 21:54:58 +02:00
parent c5b21fdcce
commit 61a7eac113
1 changed files with 1 additions and 1 deletions

View File

@ -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')