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>2015-07-09 15:15:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-07-09 15:15:54 +0300
commit0c5b35fda451b6607d348abd0cf199217844004f (patch)
treec47495790bddc7966d4e2ebebbf4451e7eec4cbb /system_demo_mode
parenta75bd5dec43fa3e633538cc8b996169a1d845ba2 (diff)
Simplify list expression and add license
Diffstat (limited to 'system_demo_mode')
-rw-r--r--system_demo_mode/config.py43
1 files changed, 32 insertions, 11 deletions
diff --git a/system_demo_mode/config.py b/system_demo_mode/config.py
index 74111127..131b5fc1 100644
--- a/system_demo_mode/config.py
+++ b/system_demo_mode/config.py
@@ -1,3 +1,23 @@
+# ##### BEGIN GPL LICENSE BLOCK #####
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software Foundation,
+# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+#
+# ##### END GPL LICENSE BLOCK #####
+
+# <pep8 compliant>
+
import os
@@ -37,17 +57,18 @@ def as_string(dirpath, random_order, exit, **kwargs):
cfg, dirpath = generate(dirpath, random_order, **kwargs)
# hint for reader, can be used if files are not found.
- cfg_str = []
- cfg_str += ["# generated file\n"]
- cfg_str += ["\n"]
- cfg_str += ["# edit the search path so other systems may find the files below\n"]
- cfg_str += ["# based on name only if the absolute paths cant be found\n"]
- cfg_str += ["# Use '//' for current blend file path.\n"]
- cfg_str += ["\n"]
- cfg_str += ["search_path = %r\n" % dirpath]
- cfg_str += ["\n"]
- cfg_str += ["exit = %r\n" % exit]
- cfg_str += ["\n"]
+ cfg_str = [
+ "# generated file\n",
+ "\n",
+ "# edit the search path so other systems may find the files below\n",
+ "# based on name only if the absolute paths cant be found\n",
+ "# Use '//' for current blend file path.\n",
+ "\n",
+ "search_path = %r\n" % dirpath,
+ "\n",
+ "exit = %r\n" % exit,
+ "\n",
+ ]
# All these work but use nicest formatting!
if 0: # works but not nice to edit.