mirror of https://code.videolan.org/videolan/vlc
Fix glade search path - thanks to dionoea
This commit is contained in:
parent
c5b21fdcce
commit
61a7eac113
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue