From 9c2a7b632714d251ac1905e8061c9980e4dfa919 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Fri, 26 Aug 2016 17:59:37 -0700 Subject: [PATCH] Fix windows writing error --- .gitignore | 0 lidartile/__init__.py | 0 lidartile/stlwriter.py | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 lidartile/__init__.py diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/lidartile/__init__.py b/lidartile/__init__.py old mode 100644 new mode 100755 diff --git a/lidartile/stlwriter.py b/lidartile/stlwriter.py index b81be0c..ec6c08d 100755 --- a/lidartile/stlwriter.py +++ b/lidartile/stlwriter.py @@ -20,7 +20,7 @@ def print_progress(self, noun, i, total): def save_grid(self, grid, filename, polygons=None): self.facets = [] print "Saving %s" % filename - with open(filename, "w") as fh: + with open(filename, "wb") as fh: fh.write(b" " * 80) # We'll update this later fh.write(struct.pack(b"