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:
authorBastien Montagne <montagne29@wanadoo.fr>2012-07-03 13:01:43 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2012-07-03 13:01:43 +0400
commit2dc06f6d50d14a97ff0c37f88b6979d18a0fd279 (patch)
tree60728ddc2bb420bcf11901e27a11a677276cb889 /add_curve_sapling
parent842985a49773634076d45f845957216006fc683e (diff)
Style edit (mostly), use """ for docstrings (not ''').
Diffstat (limited to 'add_curve_sapling')
-rw-r--r--add_curve_sapling/__init__.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/add_curve_sapling/__init__.py b/add_curve_sapling/__init__.py
index 81d7aea9..12d3c9c1 100644
--- a/add_curve_sapling/__init__.py
+++ b/add_curve_sapling/__init__.py
@@ -74,9 +74,9 @@ settings = [('0', 'Geometry', 'Geometry'),
def getPresetpath():
- '''Support user defined scripts directory
+ """Support user defined scripts directory
Find the first ocurrence of add_curve_sapling/presets in possible script paths
- and return it as preset path'''
+ and return it as preset path"""
presetpath = ""
for p in bpy.utils.script_paths():
presetpath = os.path.join(p, 'addons', 'add_curve_sapling', 'presets')
@@ -86,7 +86,7 @@ def getPresetpath():
class ExportData(bpy.types.Operator):
- '''This operator handles writing presets to file'''
+ """This operator handles writing presets to file"""
bl_idname = 'sapling.exportdata'
bl_label = 'Export Preset'
@@ -114,7 +114,7 @@ class ExportData(bpy.types.Operator):
class ImportData(bpy.types.Operator):
- '''This operator handles importing existing presets'''
+ """This operator handles importing existing presets"""
bl_idname = 'sapling.importdata'
bl_label = 'Import Preset'
@@ -135,9 +135,8 @@ class ImportData(bpy.types.Operator):
class PresetMenu(bpy.types.Menu):
- '''Create the preset menu by finding all preset files
- in the preset directory
- '''
+ """Create the preset menu by finding all preset files """ \
+ """in the preset directory"""
bl_idname = "sapling.presetmenu"
bl_label = "Presets"