[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [898] trunk/py/scripts/addons/ add_mesh_BoltFactory: removed header from these files by mistake when testing some other problem .
Campbell Barton
ideasman42 at gmail.com
Sun Aug 8 15:49:30 CEST 2010
Revision: 898
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=898
Author: campbellbarton
Date: 2010-08-08 15:49:30 +0200 (Sun, 08 Aug 2010)
Log Message:
-----------
removed header from these files by mistake when testing some other problem.
this commit also makes a minor change with path joinin in preset_utils.py
Modified Paths:
--------------
trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py
trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py
trunk/py/scripts/addons/add_mesh_BoltFactory/preset_utils.py
Modified: trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py 2010-08-06 13:21:08 UTC (rev 897)
+++ trunk/py/scripts/addons/add_mesh_BoltFactory/createMesh.py 2010-08-08 13:49:30 UTC (rev 898)
@@ -1,4 +1,22 @@
-import os #remove this
+# ##### 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 #####
+
+import os #remove this
import bpy
try:
Modified: trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py 2010-08-06 13:21:08 UTC (rev 897)
+++ trunk/py/scripts/addons/add_mesh_BoltFactory/original_script_add_mesh_bolt.py 2010-08-08 13:49:30 UTC (rev 898)
@@ -1,4 +1,21 @@
-
+# ##### 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 #####
+
bl_addon_info = {
'name': 'Add Mesh: Bolt',
'author': 'Aaron Keith',
Modified: trunk/py/scripts/addons/add_mesh_BoltFactory/preset_utils.py
===================================================================
--- trunk/py/scripts/addons/add_mesh_BoltFactory/preset_utils.py 2010-08-06 13:21:08 UTC (rev 897)
+++ trunk/py/scripts/addons/add_mesh_BoltFactory/preset_utils.py 2010-08-08 13:49:30 UTC (rev 898)
@@ -23,8 +23,8 @@
def getPresets():
- scriptPath = bpy.utils.script_paths()[0] + os.sep + "addons" + os.sep + "add_mesh_BoltFactory"
- presetPath = scriptPath + os.sep + "presets"
+ scriptPath = os.path.join(bpy.utils.script_paths()[0], "addons" , "add_mesh_BoltFactory")
+ presetPath = os.path.join(scriptPath, "presets")
presetFiles = os.listdir(presetPath)
#presetFiles.sort()
@@ -43,7 +43,7 @@
#bpy.ops.script.python_file_run(filepath=presetsPath + '\\' + preset)
- file = open(presetsPath + os.sep + preset)
+ file = open(os.path.join(presetsPath, preset))
for line in file:
exec(line)
More information about the Bf-extensions-cvs
mailing list