[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1233] branches/ io_import_xcf_as_3d_layers.py: Adding support for spaces in paths
Daniel Salazar
zanqdo at gmail.com
Sun Dec 5 15:19:48 CET 2010
Revision: 1233
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1233
Author: zanqdo
Date: 2010-12-05 15:19:48 +0100 (Sun, 05 Dec 2010)
Log Message:
-----------
Adding support for spaces in paths
Modified Paths:
--------------
branches/io_import_xcf_as_3d_layers.py
Modified: branches/io_import_xcf_as_3d_layers.py
===================================================================
--- branches/io_import_xcf_as_3d_layers.py 2010-12-05 13:28:47 UTC (rev 1232)
+++ branches/io_import_xcf_as_3d_layers.py 2010-12-05 14:19:48 UTC (rev 1233)
@@ -44,6 +44,9 @@
XCFInfo = 'xcfinfo'
XCF2PNG = 'xcf2png'
#-------------------------------------------------
+ PathRaw = Path
+ Path = Path.replace(' ', '\ ')
+ #-------------------------------------------------
# INFO
CMD = '%s %s%s' % (XCFInfo, Path, File)
@@ -234,7 +237,7 @@
Img = bpy.data.images.new(NameShort)
Img.source = 'FILE'
if PremulImages: Img.use_premultiply = True
- Img.filepath = '%s%s.png' % (Path, Name)
+ Img.filepath = '%s%s.png' % (PathRaw, Name)
Tex.image = Img
More information about the Bf-extensions-cvs
mailing list