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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-02-01 15:47:50 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-02-01 15:47:50 +0300
commit0d3cf5c8a68b97dc248b1758e2f5a36d6433c3c1 (patch)
tree568f26ada61a582cbc182c2b22b82a8a459808a8 /release/scripts/templates
parentffe7bde02c5725993e9c1986bbc8a83174adbbb8 (diff)
Script to test import operators, so a single command can execute an operator on all files in a directory and optionally save out blend files for inspection.
This comes in handy for testing importers against 100's of files, quickly showing breakages and easier to setup then unit tests. Example usage: blender.bin --background --python source/tests/batch_import.py -- \ --operator="bpy.ops.import_scene.obj" \ --path="/data/testfiles/obj" \ --match="*.obj" \ --start=0 --end=50 \ --save_path="/tmp/test" Also found my name was spelt wrong in some places :)
Diffstat (limited to 'release/scripts/templates')
-rw-r--r--release/scripts/templates/background_job.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/templates/background_job.py b/release/scripts/templates/background_job.py
index f199ee5ad50..0337f8f4922 100644
--- a/release/scripts/templates/background_job.py
+++ b/release/scripts/templates/background_job.py
@@ -82,7 +82,7 @@ def main():
# When --help or no args are given, print this help
usage_text = "Run blender in background mode with this script:"
- usage_text += " blender -b -P " + __file__ + " -- [options]"
+ usage_text += " blender --background --python " + __file__ + " -- [options]"
parser = optparse.OptionParser(usage=usage_text)