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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-08-13 17:20:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-13 17:20:23 +0400
commite568fa921316e508a6441fc86a2bfe02f3d4aff3 (patch)
treef92cd3e26cc1d8de677a934add7c552038e0ae81 /system_demo_mode/config.py
parent6aeb74120ce436c42028369d5c77fdef3559b2a7 (diff)
Option to exit once demo loop plays through.
Diffstat (limited to 'system_demo_mode/config.py')
-rw-r--r--system_demo_mode/config.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/system_demo_mode/config.py b/system_demo_mode/config.py
index 6f31fbe8..93379061 100644
--- a/system_demo_mode/config.py
+++ b/system_demo_mode/config.py
@@ -36,7 +36,7 @@ def generate(dirpath, random_order, **kwargs):
return config, dirpath
-def as_string(dirpath, random_order, **kwargs):
+def as_string(dirpath, random_order, exit, **kwargs):
""" Config loader is in demo_mode.py
"""
cfg, dirpath = generate(dirpath, random_order, **kwargs)
@@ -51,6 +51,8 @@ def as_string(dirpath, random_order, **kwargs):
cfg_str += ["\n"]
cfg_str += ["search_path = %r\n" % dirpath]
cfg_str += ["\n"]
+ cfg_str += ["exit = %r\n" % exit]
+ cfg_str += ["\n"]
# All these work but use nicest formatting!
if 0: # works but not nice to edit.