Commit 5d7a64455179742a84f89231d39b6a12ca8f8acb

Authored by Christian Herdtweck
1 parent a5036230

ppt_record_parser: ensure import is relative

Strangest thing: this change was necessary for unittesting oleobj. Without
this, running python3.3 -m unittest tests.oleobj.test_basic resulted in:
AttributeError: 'module' object has no attribute 'oleobj' . That was a
rather unhelpful error message.
Showing 1 changed file with 1 additions and 1 deletions
oletools/ppt_record_parser.py
... ... @@ -45,7 +45,7 @@ Alternative to ppt_parser.py that works on records
45 45 import sys
46 46 from struct import unpack # unsigned: 1 Byte = B, 2 Byte = H, 4 Byte = L
47 47 import logging
48   -import record_base
  48 +from . import record_base
49 49 import io
50 50 import zlib
51 51  
... ...