Pgamstransfer.gms : Test gamstransfer API

Description

Contributor: Adam Christensen, July 2020


Small Model of Type : Python


Category : GAMS API library


Main file : Pgamstransfer.gms

$TITLE 'Test gamstransfer API' (PGAMSTRANSFER,SEQ=58)

$ontext
Contributor: Adam Christensen, July 2020
$offtext


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

$ifthen setenv PYTHON38
$  call.checkErrorLevel cd . && "%sysenv.PYTHON38%" "%srcRoot%gt_example1.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%sysenv.PYTHON38%" "%srcRoot%gt_example2.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%sysenv.PYTHON38%" "%srcRoot%transport_gt.py" "%gams.sysdir%."
$endif

$ifThen dExist "%gams.sysdir%GMSPython"
$  dropEnv PYTHONUSERBASE
$  call.checkErrorLevel cd . && "%gams.sysdir%GMSPython%system.dirsep%python" "%srcRoot%gt_example1.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%gams.sysdir%GMSPython%system.dirsep%python" "%srcRoot%gt_example2.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%gams.sysdir%GMSPython%system.dirsep%python" "%srcRoot%transport_gt.py" "%gams.sysdir%."
$endIf