summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2017-03-05 15:02:28 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2017-03-05 15:02:28 +0200
commitead987f53283e89731212518f9fd781fc8e200e3 (patch)
treeec17d5c82b3a9a9f46a656f159ce1f9d0e298652
parent291ba0db67d62e89d69b37698f81615e15cc1d71 (diff)
dpdk_nic_bind: use absolute path and not relative
Change-Id: Id89c5b2fa723332dce75d7cebde294fd858f389c Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
-rwxr-xr-xscripts/dpdk_nic_bind.py7
1 files changed, 5 insertions, 2 deletions
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)