fix stpZ file exporting (six & py3 issue)

This commit is contained in:
easyw
2019-05-03 11:05:08 +02:00
committed by Yorik van Havre
parent 887a950e1d
commit 4b2ac1b390

View File

@@ -21,7 +21,7 @@ import PySide
from PySide import QtGui, QtCore
import tempfile
___stpZversion___ = "1.3.3"
___stpZversion___ = "1.3.4"
if six.PY3:
@@ -158,7 +158,7 @@ def export(objs,filename):
QtGui.QApplication.restoreOverrideCursor()
reply = QtGui.QMessageBox.information(None,"info", "File cannot be compressed because\na file with the same name exists\n'"+ namefpath+ "'")
else:
with six.builtins.open(outfpath_stp, 'rb') as f_in:
with builtin.open(outfpath_stp, 'rb') as f_in:
file_content = f_in.read()
new_f_content = file_content
f_in.close()