/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: 2007-07-15 15:05:06 UTC
  • Revision ID: jelmer@samba.org-20070715150506-1uemecr5kt7d4kvg
Fix whitespace, add comment.

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