Commit b076d30e authored by Olivier Lantsoght's avatar Olivier Lantsoght
Browse files

[MBsysPy] Fix bytes instead of string.

parent 1801c532
......@@ -271,7 +271,7 @@ class MbsDirdyn(object):
# 'libutilities.get_output_vector_label(i)' returning char*.
# However on MacOs (see comments of merge request !383) this
# does not work (pointer seems to be random).
name = os.path.basename(self.mbs_dirdyn_ptr.contents.buffers[buffer_id + i].contents.filename)[:-4]
name = bytes_to_str(os.path.basename(self.mbs_dirdyn_ptr.contents.buffers[buffer_id + i].contents.filename)[:-4])
len_prefix = len(self.get_options("resfilename"))
name = name[len_prefix + 1:]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment