/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to olive/guifiles.py

  • Committer: Jelmer Vernooij
  • Date: 2008-06-29 19:18:34 UTC
  • mto: This revision was merged to the branch mainline in revision 515.
  • Revision ID: jelmer@samba.org-20080629191834-ha2ecpv5szt96nge
Make sure signed testament matches repository data.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
import os
18
18
import sys
19
19
 
 
20
from bzrlib.plugins.gtk import _i18n
20
21
 
21
22
GLADEFILENAMES = ["/usr/share/olive/olive.glade",
22
23
                  "/usr/local/share/olive/olive.glade",
23
24
                  "/opt/share/olive/olive.glade",
24
25
                  "/opt/local/share/olive/olive.glade",
 
26
                  "~/share/olive/olive.glade",
25
27
                 ]
26
28
 
27
29
# Get the glade file name
36
38
GLADEFILENAME = None
37
39
 
38
40
for path in GLADEFILENAMES:
 
41
    path = os.path.expanduser(path)
39
42
    if os.path.isfile(path):
40
43
        GLADEFILENAME = path
41
44
        break
42
45
 
43
46
if GLADEFILENAME is None:
44
47
    # Fail
45
 
    print _('Glade file cannot be found.')
 
48
    print _i18n('Glade file cannot be found.')
46
49
    sys.exit(1)
47
50
 
48
51
UIFILEDIR = os.path.dirname(GLADEFILENAME)
52
55
 
53
56
if not os.path.isfile(UIFILENAME):
54
57
    # Fail
55
 
    print _('UI description file cannot be found.')
 
58
    print _i18n('UI description file cannot be found.')
56
59
    sys.exit(1)
57
60
 
58
61