[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [31101] trunk/blender/release/scripts/ modules/bpy/path.py: fix for missing import
Campbell Barton
ideasman42 at gmail.com
Fri Aug 6 15:06:13 CEST 2010
Revision: 31101
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=31101
Author: campbellbarton
Date: 2010-08-06 15:06:13 +0200 (Fri, 06 Aug 2010)
Log Message:
-----------
fix for missing import
Modified Paths:
--------------
trunk/blender/release/scripts/modules/bpy/path.py
Modified: trunk/blender/release/scripts/modules/bpy/path.py
===================================================================
--- trunk/blender/release/scripts/modules/bpy/path.py 2010-08-06 12:46:22 UTC (rev 31100)
+++ trunk/blender/release/scripts/modules/bpy/path.py 2010-08-06 13:06:13 UTC (rev 31101)
@@ -24,8 +24,8 @@
"""
import bpy as _bpy
+import os as _os
-
def expand(path):
"""
Returns the absolute path relative to the current blend file using the "//" prefix.
@@ -84,6 +84,7 @@
Capitalize the first letter in all lowercase names, mixed case names are kept as is.
Intended for use with filenames and module names.
"""
+
name_base = _os.path.splitext(name)[0]
# string replacements
More information about the Bf-blender-cvs
mailing list