From dafb24918e83227315727f0e3255823fcd7c5304 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 31 Mar 2006 09:05:09 +0200 Subject: [PATCH 1/1] Fix dir separator in output file Add also some debug info and remove a trailing space Signed-off-by: Antonio Ospite --- vrm.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vrm.py b/vrm.py index bab02a8..871131e 100755 --- 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() - +from Blender import sys def vectorize(filename): + + print "Filename: %s" % filename + print + filename = filename.replace('/', sys.sep) + print filename + print + scene = Scene.GetCurrent() renderer = Renderer() @@ -557,7 +564,7 @@ def vectorize(filename): writer.printCanvas(flatScene) try: - Blender.Window.FileSelector (vectorize, 'Save SVG', "proba.svg") + Blender.Window.FileSelector (vectorize, 'Save SVG', "proba.svg") except: vectorize("proba.svg") -- 2.1.4