blob: 8ff5dd4782cf97320444f2bebbd83b8f195b85bb [file] [log] [blame]
Ole Troan5f9dcff2016-08-01 04:59:13 +02001# Manipulate sys.path to allow tests be run inside the build environment.
2import os, sys, glob
3scriptdir = os.path.dirname(os.path.realpath(__file__))
4sys.path.append(os.path.dirname(glob.glob(scriptdir+'/../../../build-root/install*/vpp-api/lib64/vpp_api.so')[0]))
5sys.path.append(os.path.dirname(glob.glob(scriptdir+'/../../../build-root/install*/vlib-api/vlibmemory/memclnt.py')[0]))
6sys.path.append(os.path.dirname(glob.glob(scriptdir+'/../../../build-root/install*/vpp/vpp-api/vpe.py')[0]))
7sys.path.append(glob.glob(scriptdir+'/../../../build-root/install*/plugins/vpp_papi_plugins')[0])