/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/menu.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:
36
36
    """ This class is responsible for building the context menus. """
37
37
    def __init__(self, path, selected):
38
38
        # Load the UI file
39
 
        if sys.platform == 'win32':
40
 
            self.uifile = os.path.dirname(sys.executable) + "/share/olive/cmenu.ui"
41
 
        else:
42
 
            self.uifile = "/usr/share/olive/cmenu.ui"
43
 
        
44
 
        if not os.path.exists(self.uifile):
45
 
            # Load from current directory if not installed
46
 
            self.uifile = "cmenu.ui"
47
 
            # Check again
48
 
            if not os.path.exists(self.uifile):
49
 
                # Fail
50
 
                print _('UI description file cannot be found.')
51
 
                sys.exit(1)
52
 
        
 
39
        from guifiles import UIFILENAME
 
40
 
 
41
        self.uifile = UIFILENAME
 
42
 
53
43
        # Preferences handler
54
44
        self.pref = OlivePreferences()
55
45