diff options
-rw-r--r-- | source/blender/python/intern/bpy_interface.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_interface.c b/source/blender/python/intern/bpy_interface.c index 04d70f5a758..76852d99b56 100644 --- a/source/blender/python/intern/bpy_interface.c +++ b/source/blender/python/intern/bpy_interface.c @@ -515,7 +515,7 @@ void BPY_run_ui_scripts(bContext *C, int reload) /* normal py files? */ if(file_extension && file_extension[3] == '\0') { de->d_name[(file_extension - de->d_name) + 1] = '\0'; - bpy_import_module(de->d_name, reload); + err= bpy_import_module(de->d_name, reload); } } #ifndef __linux__ @@ -528,7 +528,7 @@ void BPY_run_ui_scripts(bContext *C, int reload) BLI_join_dirfile(path, path, "__init__.py"); if(BLI_exists(path)) { - bpy_import_module(de->d_name, reload); + err= bpy_import_module(de->d_name, reload); } } |