PInterrupt.gms : Test GamsJob interrupt mechanism in object oriented Python API

Description

Contributor: Clemens Westphal, June 2016


Small Model of Type : Python


Category : GAMS API library


Main file : PInterrupt.gms

$TITLE 'Test GamsJob interrupt mechanism in object oriented Python API' (PINTERRUPT,SEQ=54)

$ontext
Contributor: Clemens Westphal, June 2016
$offtext


$set srcRoot %gams.sysdir%api%system.dirsep%python%system.dirsep%examples%system.dirsep%control%system.dirsep%

$ifthen setenv PYTHON38
$  call.checkErrorLevel cd . && "%sysenv.PYTHON38%" "%srcRoot%interrupt.py" "%gams.sysdir%." "-nonInteractive"
$endif
$ifthen setenv PYTHON39
$  call.checkErrorLevel cd . && "%sysenv.PYTHON39%" "%srcRoot%interrupt.py" "%gams.sysdir%." "-nonInteractive"
$endif
$ifthen setenv PYTHON310
$  call.checkErrorLevel cd . && "%sysenv.PYTHON310%" "%srcRoot%interrupt.py" "%gams.sysdir%." "-nonInteractive"
$endif
$ifthen setenv PYTHON311
$  call.checkErrorLevel cd . && "%sysenv.PYTHON311%" "%srcRoot%interrupt.py" "%gams.sysdir%." "-nonInteractive"
$endif
$ifthen setenv PYTHON312
$  call.checkErrorLevel cd . && "%sysenv.PYTHON312%" "%srcRoot%interrupt.py" "%gams.sysdir%." "-nonInteractive"
$endif

$ifThen dExist "%gams.sysdir%GMSPython"
$  call.checkErrorLevel cd . && "%gams.sysdir%GMSPython%system.dirsep%python" "%srcRoot%interrupt.py" "%gams.sysdir%." "-nonInteractive"
$endIf