diff --git a/modules/Workflow/MultiModelDriver.py b/modules/Workflow/MultiModelDriver.py index f976b1c9e..8cce7eb09 100644 --- a/modules/Workflow/MultiModelDriver.py +++ b/modules/Workflow/MultiModelDriver.py @@ -162,14 +162,16 @@ def main(inputFile, driverFile, appKey, registryFile, appDir, runType, osType): 'UTF-8', ) ) - elif osType == 'Windows' and runType == 'runningRemote': + elif runType == 'runningRemote': with open(driverFile, 'wb') as f: # noqa: PTH123 f.write( - appDir - + '/applications/Workflow/' - + exeFileName - + f' {paramsFileName} {driverFile} {multiModelString}', - 'UTF-8', + bytes( + appDir + + '/applications/Workflow/' + + exeFileName + + f' {paramsFileName} {driverFile} {multiModelString}', + 'UTF-8', + ) ) else: with open(driverFile, 'wb') as f: # noqa: PTH123