Fix dir separator in output file
authorAntonio Ospite <ospite@studenti.unina.it>
Fri, 31 Mar 2006 07:05:09 +0000 (09:05 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Thu, 24 Sep 2009 11:17:17 +0000 (13:17 +0200)
Add also some debug info and remove a trailing space

Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
vrm.py

diff --git a/vrm.py b/vrm.py
index bab02a8..871131e 100755 (executable)
--- a/vrm.py
+++ b/vrm.py
@@ -543,8 +543,15 @@ def zSorting(scene):
                 #cmp(sum([v[2] for v in f1])/len(f1), sum([v[2] for v in f2])/len(f2)))
         o.faces.reverse()
     
                 #cmp(sum([v[2] for v in f1])/len(f1), sum([v[2] for v in f2])/len(f2)))
         o.faces.reverse()
     
-
+from Blender import sys
 def vectorize(filename):
 def vectorize(filename):
+
+    print "Filename: %s" % filename
+    print
+    filename = filename.replace('/', sys.sep)
+    print filename
+    print
+    
     scene   = Scene.GetCurrent()
     renderer = Renderer()
 
     scene   = Scene.GetCurrent()
     renderer = Renderer()
 
@@ -557,7 +564,7 @@ def vectorize(filename):
     writer.printCanvas(flatScene)
     
 try:
     writer.printCanvas(flatScene)
     
 try:
-    Blender.Window.FileSelector (vectorize, 'Save SVG', "proba.svg") 
+    Blender.Window.FileSelector (vectorize, 'Save SVG', "proba.svg")
 except:
     vectorize("proba.svg")
 
 except:
     vectorize("proba.svg")