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%apifiles%system.dirsep%Python%system.dirsep%
$                             set C ;
$if %system.filesys% == UNIX $set C :

$ifthen setenv PYTHON38
$  setEnv PYTHONPATH "%srcRoot%api_38%C%%srcRoot%gams"
$  call.checkErrorLevel cd . && "%sysenv.PYTHON38%" "%srcRoot%gt_example1.py" "%gams.sysdir%."
$  call.checkErrorLevel cd . && "%sysenv.PYTHON38%" "%srcRoot%gt_example2.py" "%gams.sysdir%."
$endif

$ifThen dExist "%gams.sysdir%GMSPython"
$  dropEnv PYTHONPATH
$  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%."
$endIf