/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/frontend/gtk/__init__.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-08-19 19:02:08 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060819190208-a31201530a3bb713
Some fixes for the Win32 platform; typo fixed.

2006-08-19  Szilveszter Farkas <Szilveszter.Farkas@gmail.com>

    * olive/frontend/gtk/__init__.py: added win32 compatibility
    * olive/frontend/gtk/menu.py: added win32 compatibility
    * olive/frontend/gtk/branch.py: fixed a typo

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
    
43
43
    def __init__(self):
44
44
        # Load the glade file
45
 
        self.gladefile = "/usr/share/olive/olive.glade"
 
45
        if sys.platform == 'win32':
 
46
            self.gladefile = os.path.dirname(sys.executable) + "/share/olive/olive.glade"
 
47
        else:
 
48
            self.gladefile = "/usr/share/olive/olive.glade"
 
49
 
46
50
        if not os.path.exists(self.gladefile):
47
51
            # Load from current directory if not installed
48
52
            self.gladefile = "olive.glade"
 
53
            # Check again
 
54
            if not os.path.exists(self.gladefile):
 
55
                # Fail
 
56
                print "Glade file cannot be found."
 
57
                sys.exit(1)
49
58
 
50
59
        self.toplevel = gtk.glade.XML(self.gladefile, 'window_main')
51
60