#!/bin/sh
filepath=$(dirname $(readlink -f $0))
cd $filepath
PYTHON_VERSION="3.9"

# PYTHONPATH is an environment variable which you can set to add additional directories where python will look for modules and packages.
export PYTHONPATH=./..:./../redfish:./../redfish/lib

# The problem that the shared object file libssl.so.1.1 cannot be opened is resolved.
# LD_LIBRARY_PATH Environment variables are used to specify dynamic linkers.
export LD_LIBRARY_PATH=./../python/lib/python$PYTHON_VERSION/lib-dynload:$LD_LIBRARY_PATH

./../python/python$PYTHON_VERSION ./../scripts/client_main.py "$@"