- args += [window.ui.le_origMeshFile.text().toLocal8Bit().data()]
- args += [window.ui.le_cutMeshFile.text().toLocal8Bit().data()]
- args += [window.ui.le_outMeshName.text().toLocal8Bit().data()]
- args += [window.ui.le_groupAbove.text().toLocal8Bit().data()]
- args += [window.ui.le_groupBelow.text().toLocal8Bit().data()]
+ if sys.platform == "win32":
+ args += [str(window.ui.le_origMeshFile.text())]
+ args += [str(window.ui.le_cutMeshFile.text())]
+ args += [str(window.ui.le_outMeshName.text())]
+ args += [str(window.ui.le_groupAbove.text())]
+ args += [str(window.ui.le_groupBelow.text())]
+ else:
+ args += [str(window.ui.le_origMeshFile.text()).encode()]
+ args += [str(window.ui.le_cutMeshFile.text()).encode()]
+ args += [str(window.ui.le_outMeshName.text()).encode()]
+ args += [str(window.ui.le_groupAbove.text()).encode()]
+ args += [str(window.ui.le_groupBelow.text()).encode()]