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:
Diffstat (limited to 'release/scripts/templates_py/background_job.py')
-rw-r--r--release/scripts/templates_py/background_job.py26
1 files changed, 16 insertions, 10 deletions
diff --git a/release/scripts/templates_py/background_job.py b/release/scripts/templates_py/background_job.py
index ddd8ce1384e..2f444641a51 100644
--- a/release/scripts/templates_py/background_job.py
+++ b/release/scripts/templates_py/background_job.py
@@ -73,21 +73,27 @@ def main():
# When --help or no args are given, print this help
usage_text = (
- "Run blender in background mode with this script:"
- " blender --background --python " + __file__ + " -- [options]"
- )
+ "Run blender in background mode with this script:"
+ " blender --background --python " + __file__ + " -- [options]"
+ )
parser = argparse.ArgumentParser(description=usage_text)
# Example utility, add some text and renders or saves it (with options)
# Possible types are: string, int, long, choice, float and complex.
- parser.add_argument("-t", "--text", dest="text", type=str, required=True,
- help="This text will be used to render an image")
-
- parser.add_argument("-s", "--save", dest="save_path", metavar='FILE',
- help="Save the generated file to the specified path")
- parser.add_argument("-r", "--render", dest="render_path", metavar='FILE',
- help="Render an image to the specified path")
+ parser.add_argument(
+ "-t", "--text", dest="text", type=str, required=True,
+ help="This text will be used to render an image",
+ )
+
+ parser.add_argument(
+ "-s", "--save", dest="save_path", metavar='FILE',
+ help="Save the generated file to the specified path",
+ )
+ parser.add_argument(
+ "-r", "--render", dest="render_path", metavar='FILE',
+ help="Render an image to the specified path",
+ )
args = parser.parse_args(argv) # In this example we wont use the args