From e568fa921316e508a6441fc86a2bfe02f3d4aff3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 13 Aug 2012 13:20:23 +0000 Subject: Option to exit once demo loop plays through. --- system_demo_mode/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'system_demo_mode/config.py') 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. -- cgit v1.2.3