~openerp-dev/openobject-client/duplication_of_ir.filters

« back to all changes in this revision

Viewing changes to bin/openerp-client.py

  • Committer: RGA(OpenERP)
  • Date: 2010-10-12 11:11:19 UTC
  • mfrom: (1564.1.45 trunk)
  • Revision ID: rga@tinyerp.com-20101012111119-jsuwv2erjdxq44us
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
pygtk.require('2.0')
60
60
import gtk
61
61
import gtk.glade
62
 
from glib import GError
63
62
 
64
63
#gtk.gdk.threads_init() # causes the GTK client to block everything.
65
64
 
118
117
    ffname = os.path.join(pix_file,fname)
119
118
    if not os.path.isfile(ffname):
120
119
        continue
121
 
    iname, ext = os.path.splitext(fname)
 
120
    iname = os.path.splitext(fname)[0]
122
121
    try:
123
122
        pixbuf = gtk.gdk.pixbuf_new_from_file(ffname)
124
 
    except GError:
125
 
        if ext == '.svg':
126
 
            sys.stderr.write('Please install librsvg\n')
 
123
    except:
127
124
        pixbuf = None
128
125
        continue
129
126
    if pixbuf: