Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blender-addons
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
blender
blender-addons
Commits
0c5b35fd
Commit
0c5b35fd
authored
9 years ago
by
Campbell Barton
Browse files
Options
Downloads
Patches
Plain Diff
Simplify list expression and add license
parent
a75bd5de
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
system_demo_mode/config.py
+32
-11
32 additions, 11 deletions
system_demo_mode/config.py
with
32 additions
and
11 deletions
system_demo_mode/config.py
+
32
−
11
View file @
0c5b35fd
# ##### 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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment