Skip to content

Commit

Permalink
Use relative import
Browse files Browse the repository at this point in the history
This way the import statements remain the same in both Blender's
io_blend_utils module and BAM.
  • Loading branch information
sybrenstuvel committed Sep 15, 2016
1 parent 959f9d2 commit 510cd44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io_blend_utils/blend/blendfile_path_walker.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def iter_blocks_idlib():
# store info to pass along with each iteration
extra_info = rootdir, os.path.basename(filepath)

from blend import blendfile
from . import blendfile
with blendfile.open_blend(filepath_tmp, "rb" if readonly else "r+b") as blend:

for code in blend.code_index.keys():
Expand Down Expand Up @@ -627,7 +627,7 @@ def iter_ListBase(block, next_item=b'next'):

def iter_array(block, length=-1):
assert(block.code == b'DATA')
from blend import blendfile
from . import blendfile
import os
handle = block.file.handle
header = block.file.header
Expand Down

0 comments on commit 510cd44

Please sign in to comment.