[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [1237] branches/ io_import_gimp_to_3d_layers.py: Better use python' s mkdir for crossplatformness

Daniel Salazar zanqdo at gmail.com
Sun Dec 5 19:50:32 CET 2010


Revision: 1237
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-extensions&revision=1237
Author:   zanqdo
Date:     2010-12-05 19:50:32 +0100 (Sun, 05 Dec 2010)

Log Message:
-----------
Better use python's mkdir for crossplatformness

Modified Paths:
--------------
    branches/io_import_gimp_to_3d_layers.py

Modified: branches/io_import_gimp_to_3d_layers.py
===================================================================
--- branches/io_import_gimp_to_3d_layers.py	2010-12-05 17:52:40 UTC (rev 1236)
+++ branches/io_import_gimp_to_3d_layers.py	2010-12-05 18:50:32 UTC (rev 1237)
@@ -51,15 +51,13 @@
 	if bpy.data.is_dirty:
 		PathSaveRaw = Path+Folder
 		PathSave = PathSaveRaw.replace(' ', '\ ')
-		print ('SaveRaw: ', PathSaveRaw)
-		print ('Save: ', PathSave)
-		os.system('mkdir %s' % PathSave)
+		os.mkdir(PathSaveRaw)
 	else:
 		PathSave = bpy.data.filepath
 		RSlash = PathSave.rfind('/')
 		PathSaveRaw = PathSave[:RSlash+1]+Folder
 		PathSave = PathSaveRaw.replace(' ', '\ ')
-		os.system('mkdir %s' % PathSave)
+		os.mkdir(PathSaveRaw)
 		PathSaveRaw = bpy.path.relpath(PathSaveRaw)+'/'
 		
 	Path = Path.replace(' ', '\ ')




More information about the Bf-extensions-cvs mailing list