/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: Szilveszter Farkas (Phanatic)
  • Date: 2006-10-31 21:09:50 UTC
  • mfrom: (91.1.9 trunk)
  • Revision ID: Szilveszter.Farkas@gmail.com-20061031210950-3cdc975d423126e4
MergeĀ fromĀ trunk.

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