Skip to content

Commit 5d52714

Browse files
committed
fmk - changinging code so errorlevel check only on windows if runtype is set_up, was failing windows sending to TACC
1 parent b95993f commit 5d52714

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/Workflow/whale/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,7 +2293,7 @@ def preprocess_inputs( # noqa: C901
22932293
# This time, (1) we do it only for python; (2) added try statement
22942294

22952295
try:
2296-
if command.startswith('python'):
2296+
if command.startswith('python') and self.run_type == 'set_up':
22972297
if platform.system() == 'Windows':
22982298
driver_script += 'if %errorlevel% neq 0 exit /b -1 \n' #TODO ANYONE: This variable is not defined. Check This please. (Added by Sina)
22992299
else:
@@ -2461,7 +2461,7 @@ def create_driver_file( # noqa: C901
24612461
# This time, (1) we do it only for python; (2) added try statement
24622462

24632463
# try:
2464-
if 'python' in command_list[0].lower():
2464+
if 'python' in command_list[0].lower() and self.run_type == 'set_up':
24652465
if platform.system() == 'Windows':
24662466
driver_script += 'if %errorlevel% neq 0 exit /b -1 \n'
24672467
else:

0 commit comments

Comments
 (0)