From: Antonio Ospite Date: Fri, 31 Mar 2006 07:05:09 +0000 (+0200) Subject: Fix dir separator in output file X-Git-Tag: vrm-0.3~35 X-Git-Url: https://git.ao2.it/vrm.git/commitdiff_plain/dafb24918e83227315727f0e3255823fcd7c5304?ds=inline;hp=ce9591fe89bfd93523fedeb453342561d7054dab Fix dir separator in output file Add also some debug info and remove a trailing space Signed-off-by: Antonio Ospite --- 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")