PAlias.gms : Test handling of Aliases in object oriented Python API

Description

Contributor: Clemens Westphal, November 2014


Small Model of Type : Python


Category : GAMS API library


Main file : PAlias.gms   includes :  apimod.inc [html]

$TITLE 'Test handling of Aliases in object oriented Python API' (PALIAS,SEQ=44)
$ontext
Contributor: Clemens Westphal, November 2014
$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%alias.py" "%gams.sysdir%."
$endif
$ifthen setenv PYTHON37
$  setEnv PYTHONPATH "%srcRoot%api_37%C%%srcRoot%gams"
$  call.checkErrorLevel cd . && "%sysenv.PYTHON37%" "%srcRoot%alias.py" "%gams.sysdir%."
$endif
$ifthen setenv PYTHON38
$  setEnv PYTHONPATH "%srcRoot%api_38%C%%srcRoot%gams"
$  call.checkErrorLevel cd . && "%sysenv.PYTHON38%" "%srcRoot%alias.py" "%gams.sysdir%."
$endif
$ifthen setenv PYTHON39
$  setEnv PYTHONPATH "%srcRoot%api_39%C%%srcRoot%gams"
$  call.checkErrorLevel cd . && "%sysenv.PYTHON39%" "%srcRoot%alias.py" "%gams.sysdir%."
$endif

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