OleFileIO_PL.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/local/bin/python
  2. # -*- coding: latin-1 -*-
  3. """
  4. olefile (formerly OleFileIO_PL)
  5. Module to read/write Microsoft OLE2 files (also called Structured Storage or
  6. Microsoft Compound Document File Format), such as Microsoft Office 97-2003
  7. documents, Image Composer and FlashPix files, Outlook messages, ...
  8. This version is compatible with Python 2.6+ and 3.x
  9. Project website: http://www.decalage.info/olefile
  10. olefile is copyright (c) 2005-2015 Philippe Lagadec (http://www.decalage.info)
  11. olefile is based on the OleFileIO module from the PIL library v1.1.6
  12. See: http://www.pythonware.com/products/pil/index.htm
  13. The Python Imaging Library (PIL) is
  14. Copyright (c) 1997-2005 by Secret Labs AB
  15. Copyright (c) 1995-2005 by Fredrik Lundh
  16. See source code and LICENSE.txt for information on usage and redistribution.
  17. """
  18. # The OleFileIO_PL module is for backward compatibility
  19. try:
  20. # first try to import olefile for Python 2.6+/3.x
  21. from olefile.olefile import *
  22. # import metadata not covered by *:
  23. from olefile.olefile import __version__, __author__, __date__
  24. except:
  25. # if it fails, fallback to the old version olefile2 for Python 2.x:
  26. from olefile.olefile2 import *
  27. # import metadata not covered by *:
  28. from olefile.olefile2 import __doc__, __version__, __author__, __date__