#!/bin/bash
cd

if [ ! -d ~/Engine ]; then
  git clone https://github.com/fp7-netide/Engine
fi

# TODO: install netip libraries so that java and python can find them

#echo "export PYTHONPATH=\$PYTHONPATH:~/Engine/ryu-backend:~/Engine/ryu-backend/tests" >> $HOME/.bashrc
#echo "export PYTHONPATH=\$PYTHONPATH:~/Engine/ryu-backend:~/Engine/ryu-backend/tests" >> $HOME/.profile

#echo "export PYTHONPATH=\$PYTHONPATH:~/Engine/ryu-shim" >> $HOME/.bashrc
#echo "export PYTHONPATH=\$PYTHONPATH:~/Engine/ryu-shim" >> $HOME/.profile

#!/bin/bash

cd

if [ ! -d ~/Engine ]; then
  git clone https://github.com/fp7-netide/Engine
fi

x="export PYTHONPATH=\$PYTHONPATH:~/Engine/libraries/netip/python"

echo "$x" >> $HOME/.bashrc
echo "$x" >> $HOME/.profile

# TODO: install netip libraries so that java can find them

Add path to netip libraries to Python path when installing engine
Add path to netip libraries to Python path when installing engine

This doesn't exactly feels like the right way to do this, but gets the
job done. We should probably convert the Python library to a
PIP-installable Python package

Signed-off-by: Gregor Best <8f1ca2a348912e16236a8917e62a31c087708057@mail.upb.de>
