From ead987f53283e89731212518f9fd781fc8e200e3 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Sun, 5 Mar 2017 15:02:28 +0200 Subject: dpdk_nic_bind: use absolute path and not relative Change-Id: Id89c5b2fa723332dce75d7cebde294fd858f389c Signed-off-by: Yaroslav Brustinov --- scripts/dpdk_nic_bind.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts/dpdk_nic_bind.py') diff --git a/scripts/dpdk_nic_bind.py b/scripts/dpdk_nic_bind.py index 9f5e34a6..ce82c9f4 100755 --- a/scripts/dpdk_nic_bind.py +++ b/scripts/dpdk_nic_bind.py @@ -35,12 +35,15 @@ import sys, os, getopt, subprocess, shlex from os.path import exists, abspath, dirname, basename from distutils.util import strtobool -text_tables_path = os.path.join('external_libs', 'texttable-0.8.4') + +curdir = os.path.abspath(os.path.dirname(__file__)) + +text_tables_path = os.path.join(curdir, 'external_libs', 'texttable-0.8.4') sys.path.append(text_tables_path) import texttable sys.path.remove(text_tables_path) -netstat_path = 'external_libs' +netstat_path = os.path.join(curdir, 'external_libs') sys.path.append(netstat_path) import netstat sys.path.remove(netstat_path) -- cgit 1.2.3-korg