Comment 14 for bug 40177

Revision history for this message
In , Sidnei da Silva (sidnei) wrote :

(In reply to comment #6)
> >+from os.path import dirname, abspath
>
> This is not allowed, just use the name directly, since they're
> no need to explicitly importing os.path.

Fair enough. Just that the line would be longer than 80 columns, but I can wrap that.

Do you want me to submit a new patch?

> >+ # Add some compressed formats as alternative extensions to
> >+ # "glade" resources. A patch has been added to gazpacho trunk
> >+ # (rev. 2251) to support loading those compressed formats.
> >+ self.add_alternative_extensions("glade", ".bz2", ".gz")
>
> Can this be determined in runtime somehow?
> So the extensions are only added if gazpacho actually supports them.

Given that we added a module-level function 'open_file' to gazpacho, you could check for that. Or you could check for the version. Does gazpacho have a function to return it's version?