- args += [unicode(window.ui.le_origMeshFile.text()).encode()]
- args += [unicode(window.ui.le_cutMeshFile.text()).encode()]
- args += [unicode(window.ui.le_outMeshName.text()).encode()]
- args += [unicode(window.ui.le_groupAbove.text()).encode()]
- args += [unicode(window.ui.le_groupBelow.text()).encode()]
+ 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()]