Commit 4ed0515bc37d2bfb8eb00fb6e03a23befe6a553b
1 parent
eac91d72
Exists in
master
and in
6 other branches
FIX: Exception in the windows remove temp file
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/data/surface.py
@@ -266,7 +266,7 @@ class SurfaceManager(): | @@ -266,7 +266,7 @@ class SurfaceManager(): | ||
266 | os.remove(filename_polydata) | 266 | os.remove(filename_polydata) |
267 | except (WindowsError): | 267 | except (WindowsError): |
268 | print "Error while removing surface temporary file" | 268 | print "Error while removing surface temporary file" |
269 | - if sys.platform == 'linux2': | 269 | + elif sys.platform == 'linux2': |
270 | try: | 270 | try: |
271 | os.remove(filename_img) | 271 | os.remove(filename_img) |
272 | os.remove(filename_polydata) | 272 | os.remove(filename_polydata) |