/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: Alexander Belchenko
  • Date: 2006-10-25 16:29:18 UTC
  • mto: (91.1.8 trunk) (66.2.10 trunk)
  • mto: This revision was merged to the branch mainline in revision 107.
  • Revision ID: bialix@ukr.net-20061025162918-ea2aa6e4dd126b9d
Names XML files with GUI resources obtained via olive/guifiles.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        # Fail
35
35
        print _('Glade file cannot be found.')
36
36
        sys.exit(1)
 
37
 
 
38
# Get the cmenu.ui file name
 
39
if sys.platform == 'win32':
 
40
    UIFILENAME = os.path.dirname(sys.executable) + "/share/olive/cmenu.ui"
 
41
else:
 
42
    UIFILENAME = "/usr/share/olive/cmenu.ui"
 
43
 
 
44
if not os.path.isfile(UIFILENAME):
 
45
    # Load from current directory if not installed
 
46
    dir_ = os.path.split(os.path.dirname(__file__))[0]
 
47
    UIFILENAME = os.path.join(dir_, "cmenu.ui")
 
48
    # Check again
 
49
    if not os.path.isfile(UIFILENAME):
 
50
        # Fail
 
51
        print _('UI description file cannot be found.')
 
52
        sys.exit(1)
 
53
 
 
54