diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-26 06:42:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-26 06:42:59 +0300 |
commit | 04e32be958bb90be2824c083eba8f983d9133f76 (patch) | |
tree | c65d6c5373966888d4210bcc3830373048d623cb /doc/python_api | |
parent | bc88e61efa3fdf9b0f2dc2d3790567d0c2c26a82 (diff) |
optparse module is deprecated, use new argparse module in background job template.
correction to example in doc too.
Diffstat (limited to 'doc/python_api')
-rw-r--r-- | doc/python_api/examples/bpy.data.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/examples/bpy.data.py b/doc/python_api/examples/bpy.data.py index 555b421ddac..7d6bf94532b 100644 --- a/doc/python_api/examples/bpy.data.py +++ b/doc/python_api/examples/bpy.data.py @@ -14,7 +14,7 @@ print(bpy.data.scenes.keys()) if "Cube" in bpy.data.meshes: mesh = bpy.data.meshes["Cube"] print("removing mesh", mesh) - bpy.data.meshes.unlink(mesh) + bpy.data.meshes.remove(mesh) # write images into a file next to the blend @@ -22,6 +22,6 @@ import os file = open(os.path.splitext(bpy.data.filepath)[0] + ".txt", 'w') for image in bpy.data.images: - file.write("%s %dx%d\n" % (image.filepath, image.size[0], image.size[1])) + file.write("%s %d x %d\n" % (image.filepath, image.size[0], image.size[1])) file.close() |