From 9422f7ccfd7b4673dd8c2994d7bf4d78a041e65d Mon Sep 17 00:00:00 2001 From: yisangriB Date: Thu, 15 Aug 2024 20:12:50 -0700 Subject: [PATCH] sy - updating osType condition --- modules/Workflow/MultiModelDriver.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/Workflow/MultiModelDriver.py b/modules/Workflow/MultiModelDriver.py index d53c39269..df1ea4ce6 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: FURB103, PTH123