Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2016-09-15 15:40:36 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2016-09-15 15:40:50 +0300
commit510cd44a72ef35aaca96eef192f209b63318a54b (patch)
tree43d75e613c0cb4ebcc10363539b664330285c7f8 /io_blend_utils
parent959f9d28d26cd2de4c0db2fb4f65607e9ec7e2bf (diff)
Use relative import
This way the import statements remain the same in both Blender's io_blend_utils module and BAM.
Diffstat (limited to 'io_blend_utils')
-rw-r--r--io_blend_utils/blend/blendfile_path_walker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_blend_utils/blend/blendfile_path_walker.py b/io_blend_utils/blend/blendfile_path_walker.py
index b7c37a07..f9005520 100644
--- a/io_blend_utils/blend/blendfile_path_walker.py
+++ b/io_blend_utils/blend/blendfile_path_walker.py
@@ -395,7 +395,7 @@ class FilePath:
# 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():
@@ -627,7 +627,7 @@ class bf_utils:
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