Comment 3 for bug 511882

Revision history for this message
Alessio Treglia (quadrispro) wrote : Re: [Bug 511882] Re: Imported images are not rotated based on exif meta data

On Fri, Jan 29, 2010 at 9:12 AM, Daniel Ellis <email address hidden> wrote:
> If this patch is to be included in the Ubuntu repository, it will need
> updating to **require** the package python_pyexiv2.  If anyone knows how
> to make python continue if a certain import statement fails, then we
> could make videoporama just recommend python_pyexiv2 instead of
> requiring it.
>

Of course you can wrap your import statements with try&except:

try:
    import pyexiv2
except ImportError:
    pass # alternatively you can also print a warning

BTW, thank you for sending patch to upstream!

--
Alessio Treglia <email address hidden>
Ubuntu MOTU Developer | Homepage: http://www.alessiotreglia.com
0FEC 59A5 E18E E04F 6D40 593B 45D4 8C7C DCFC 3FD0