Fix glade search path - thanks to dionoea
authorRafaël Carré <funman@videolan.org>
Sun, 18 May 2008 19:54:58 +0000 (21:54 +0200)
committerRafaël Carré <funman@videolan.org>
Sun, 18 May 2008 19:54:58 +0000 (21:54 +0200)
extras/misc/mpris.py

index 8b157b7..60d3a74 100755 (executable)
@@ -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')