Skip to content

Commit

Permalink
Fix windows writing error
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewgodwin committed Aug 27, 2016
1 parent 474434c commit 9c2a7b6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified lidartile/__init__.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion lidartile/stlwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"<L", 0))
Expand Down

0 comments on commit 9c2a7b6

Please sign in to comment.