Commit 7a674567651001cb78a4c377abf78ca00ccc066e

Authored by tfmoraes
1 parent 076bf134

Encoding the stl filename to the wx.GetDefaultPyEncoding(), it resolves the prob…

…lem with exporting stl files
Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
invesalius/data/surface.py
@@ -23,6 +23,7 @@ import plistlib @@ -23,6 +23,7 @@ import plistlib
23 import random 23 import random
24 24
25 import vtk 25 import vtk
  26 +import wx
26 from wx.lib.pubsub import pub as Publisher 27 from wx.lib.pubsub import pub as Publisher
27 28
28 import constants as const 29 import constants as const
@@ -764,7 +765,7 @@ class SurfaceManager(): @@ -764,7 +765,7 @@ class SurfaceManager():
764 normals.UpdateInformation() 765 normals.UpdateInformation()
765 polydata = normals.GetOutput() 766 polydata = normals.GetOutput()
766 767
  768 + filename = filename.encode(wx.GetDefaultPyEncoding())
767 writer.SetFileName(filename) 769 writer.SetFileName(filename)
768 writer.SetInput(polydata) 770 writer.SetInput(polydata)
769 writer.Write() 771 writer.Write()
770 -