~agateau/ubiquity/kde-show-os-name

« back to all changes in this revision

Viewing changes to ubiquity/frontend/gtk_ui.py

  • Committer: Evan Dandrea
  • Date: 2010-04-08 13:58:29 UTC
  • mto: This revision was merged to the branch mainline in revision 4123.
  • Revision ID: evan.dandrea@canonical.com-20100408135829-y6ljaxt00y84xuf4
Initial commit of test work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
__pychecker__ = 'no-classattr'
69
69
 
70
70
# Define global path
71
 
PATH = '/usr/share/ubiquity'
 
71
PATH = os.environ.get('UBIQUITY_PATH', False) or '/usr/share/ubiquity'
 
72
 
 
73
# Define global pixmaps location
 
74
PIXMAPS = os.environ.get('PIXMAPS', False) or '/usr/share/pixmaps'
72
75
 
73
76
# Define ui path
74
 
UIDIR = os.path.join(PATH, 'gtk')
 
77
UIDIR = os.environ.get('UBIQUITY_GLADE', False) or os.path.join(PATH, 'gtk')
 
78
os.environ['UBIQUITY_GLADE'] = UIDIR
75
79
 
76
80
# Define locale path
77
81
LOCALEDIR = "/usr/share/locale"
225
229
        # set custom language
226
230
        self.set_locales()
227
231
 
228
 
        gtk.window_set_default_icon_from_file('/usr/share/pixmaps/'
229
 
                                              'ubiquity.png')
 
232
        gtk.window_set_default_icon_from_file(os.path.join(PIXMAPS,
 
233
                                              'ubiquity.png'))
230
234
 
231
235
        # load the main interface
232
236
        self.builder.add_from_file('%s/ubiquity.ui' % UIDIR)