[Bf-docboard-svn] bf-manual: [9123] trunk/blender_docs/tools_maintenance/update_screenshots.py: Fix error introduced in rBM9079 (added note so the same mistake doesn't happen again)
Campbell Barton
noreply at blender.org
Tue Mar 15 04:19:38 CET 2022
Revision: 9123
https://developer.blender.org/rBM9123
Author: campbellbarton
Date: 2022-03-15 04:19:38 +0100 (Tue, 15 Mar 2022)
Log Message:
-----------
Fix error introduced in rBM9079 (added note so the same mistake doesn't happen again)
Modified Paths:
--------------
trunk/blender_docs/tools_maintenance/update_screenshots.py
Modified: trunk/blender_docs/tools_maintenance/update_screenshots.py
===================================================================
--- trunk/blender_docs/tools_maintenance/update_screenshots.py 2022-03-15 03:18:54 UTC (rev 9122)
+++ trunk/blender_docs/tools_maintenance/update_screenshots.py 2022-03-15 03:19:38 UTC (rev 9123)
@@ -24,7 +24,6 @@
"""
-import bpy
import sys
import os
if "bpy" not in sys.modules:
@@ -95,6 +94,10 @@
bpy.app.use_userpref_skip_save_on_exit = False
+# WARNING: do not relocate this import,
+# it's important to postpone so this script can run outside of Blender.
+import bpy
+
# ----------------------------------------------------------------------
# Blender Timer Wrapper
@@ -174,7 +177,7 @@
min[1] + size_dst[1],
)
ibuf.crop(min=min, max=max)
- imbuf.write(ibuf, filepath)
+ imbuf.write(ibuf, filepath=filepath)
# ----------------------------------------------------------------------
More information about the Bf-docboard-svn
mailing list