Commit 3e03c255 authored by Lars Kruse's avatar Lars Kruse

added fix for STL files

A missing binary flag during "open" caused incomplete read operations.
Thus the length-based validation of the binary STL format failed.
parents 9c66452d 9ae1d60d
......@@ -155,7 +155,7 @@ class URIHandler(object):
def open(self):
if self.is_local():
return open(self.get_local_path())
return open(self.get_local_path(), "rb")
else:
return urllib.urlopen(self._uri.geturl())
......
application/sla; pycam '%s'; description="Stereo Lithographic File"; test=test -n "$DISPLAY"; nametemplate=%s.stl
image/vnd.dxf; pycam '%s'; description="Drawing Interchange File"; test=test -n "$DISPLAY"; nametemplate=%s.dxf
image/svg+xml; pycam '%s'; description="Vector Graphics"; test=test -n "$DISPLAY" && which inkscape && which pstoedit; nametemplate=%s.svg
application/postscript; pycam '%s'; description="Postscript"; test=test -n "$DISPLAY" && which pstoedit
image/svg+xml; pycam '%s'; description="Vector Graphics"; test=test -n "$DISPLAY" && which inkscape pstoedit >/dev/null; nametemplate=%s.svg
application/postscript; pycam '%s'; description="Postscript"; test=test -n "$DISPLAY" && which pstoedit >/dev/null
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment