Commit 7a674567651001cb78a4c377abf78ca00ccc066e
1 parent
076bf134
Exists in
master
and in
67 other branches
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 | 23 | import random |
| 24 | 24 | |
| 25 | 25 | import vtk |
| 26 | +import wx | |
| 26 | 27 | from wx.lib.pubsub import pub as Publisher |
| 27 | 28 | |
| 28 | 29 | import constants as const |
| ... | ... | @@ -764,7 +765,7 @@ class SurfaceManager(): |
| 764 | 765 | normals.UpdateInformation() |
| 765 | 766 | polydata = normals.GetOutput() |
| 766 | 767 | |
| 768 | + filename = filename.encode(wx.GetDefaultPyEncoding()) | |
| 767 | 769 | writer.SetFileName(filename) |
| 768 | 770 | writer.SetInput(polydata) |
| 769 | 771 | writer.Write() |
| 770 | - | ... | ... |