Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-01-22 13:03:37 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-01-22 13:03:37 +0300
commit0a2db9698257b70d8eff69051b5b1b577dde73a5 (patch)
treedca5bf42ad71fdf91f006f9faa1a64285c30f1d1 /io_mesh_ply/export_ply.py
parent5b308e020969a14359f662cb8d69d144288c53a6 (diff)
write \n even on windows so files can be compared between windows and linux (for testing).
most editors (besides notepad) will open these files without trouble.
Diffstat (limited to 'io_mesh_ply/export_ply.py')
-rw-r--r--io_mesh_ply/export_ply.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/io_mesh_ply/export_ply.py b/io_mesh_ply/export_ply.py
index 271a2d23..11a16438 100644
--- a/io_mesh_ply/export_ply.py
+++ b/io_mesh_ply/export_ply.py
@@ -45,7 +45,7 @@ def save(operator, context, filepath="", use_modifiers=True, use_normals=True, u
if not obj:
raise Exception("Error, Select 1 active object")
- file = open(filepath, 'w')
+ file = open(filepath, "w", encoding="utf8", newline="\n")
if scene.objects.active:
bpy.ops.object.mode_set(mode='OBJECT')