Commits

oliver_g committed 2048311

search Glade file in directory where .py file is located

  • Participants
  • Parent commits b233c2d
  • Branches hachoir-gtk

Comments (0)

Files changed (1)

File hachoir-gtk/hachoir-gtk

 #!/usr/bin/env python
 import pygtk
 import sys
+import os
 pygtk.require ('2.0') # 2.2 for Clipboard
 import gtk.glade
 from hachoir_core.cmd_line import unicodeFilename
 from hachoir_parser import createParser
 
-UI_FILENAME = "hachoir.glade"
+UI_FILENAME = os.path.dirname( __file__ ) + "/hachoir.glade"
 
 class Interface:
     def __init__(self, fieldset):