[alacarte] ItemEditor: Use an absolute path to the builder file



commit 73321bd25d719fa9d06c03ce6b93a0bb4b8a5b43
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Fri Jan 11 00:51:25 2013 -0500

    ItemEditor: Use an absolute path to the builder file

 Alacarte/ItemEditor.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/Alacarte/ItemEditor.py b/Alacarte/ItemEditor.py
index b3c923a..bf8aa14 100644
--- a/Alacarte/ItemEditor.py
+++ b/Alacarte/ItemEditor.py
@@ -76,7 +76,7 @@ DESKTOP_GROUP = GLib.KEY_FILE_DESKTOP_GROUP
 class LauncherEditor(object):
     def __init__(self, item_path):
         self.builder = Gtk.Builder()
-        self.builder.add_from_file('data/launcher-editor.ui')
+        self.builder.add_from_file(os.path.join(config.pkgdatadir, 'launcher-editor.ui'))
 
         self.dialog = self.builder.get_object('launcher-editor')
         self.dialog.connect('response', self.on_response)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]