PSpecialValues.gms : Test handling of Special Values in object oriented Python API

Description

Contributor: Clemens Westphal, January 2015


Small Model of Type : Python


Category : GAMS API library


Main file : PSpecialValues.gms

$TITLE 'Test handling of Special Values in object oriented Python API' (PSPECIALVALUES,SEQ=48)

$ontext
Contributor: Clemens Westphal, January 2015
$offtext


$set srcRoot %gams.sysdir%apifiles%system.dirsep%Python%system.dirsep%
$                             set C ;
$if %system.filesys% == UNIX $set C :

$ifthen setenv PYTHON36
$  setEnv PYTHONPATH "%srcRoot%api_36%C%%srcRoot%gams"
$  call.checkErrorLevel cd . && "%sysenv.PYTHON36%" "%srcRoot%special_values.py" "%gams.sysdir%."
$endif
$ifthen setenv PYTHON37
$  setEnv PYTHONPATH "%srcRoot%api_37%C%%srcRoot%gams"
$  call.checkErrorLevel cd . && "%sysenv.PYTHON37%" "%srcRoot%special_values.py" "%gams.sysdir%."
$endif
$ifthen setenv PYTHON38
$  setEnv PYTHONPATH "%srcRoot%api_38%C%%srcRoot%gams"
$  call.checkErrorLevel cd . && "%sysenv.PYTHON38%" "%srcRoot%special_values.py" "%gams.sysdir%."
$endif
$ifthen setenv PYTHON39
$  setEnv PYTHONPATH "%srcRoot%api_39%C%%srcRoot%gams"
$  call.checkErrorLevel cd . && "%sysenv.PYTHON39%" "%srcRoot%special_values.py" "%gams.sysdir%."
$endif

$ifThen dExist "%gams.sysdir%GMSPython"
$  dropEnv PYTHONPATH
$  call.checkErrorLevel cd . && "%gams.sysdir%GMSPython%system.dirsep%python" "%srcRoot%special_values.py" "%gams.sysdir%."
$endIf