Skip to content

Commit

Permalink
FEM: solver elmer tasks, Py3 decode fix
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Jun 11, 2019
1 parent c120549 commit 5e454da
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Mod/Fem/femsolver/elmer/tasks.py
Expand Up @@ -28,6 +28,7 @@

import subprocess
import os.path
import sys

import FreeCAD
import femtools.femutils as femutils
Expand Down Expand Up @@ -114,7 +115,10 @@ def run(self):
def _updateOutput(self, output):
if self.solver.ElmerOutput is None:
self._createOutput()
self.solver.ElmerOutput.Text = output.decode("utf-8")
if sys.version_info.major >= 3:
self.solver.ElmerOutput.Text = output
else:
self.solver.ElmerOutput.Text = output.decode("utf-8")

def _createOutput(self):
self.solver.ElmerOutput = self.analysis.Document.addObject(
Expand Down

0 comments on commit 5e454da

Please sign in to comment.