From 2f3ec89ef4bd401ec8380282efbcb6735bba866f Mon Sep 17 00:00:00 2001 From: tgoff0 Date: Fri, 22 May 2015 00:55:13 +0000 Subject: [PATCH] Use sys.prefix instead of sys.exec_prefix for python sbin programs. --- configure.ac | 1 + daemon/Makefile.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b8ca184e..a4cf2757 100644 --- a/configure.ac +++ b/configure.ac @@ -250,6 +250,7 @@ if test "x$want_python" = "xyes"; then pythondir=`echo ${pythondir} | sed -e 's,[$][{]prefix[}],${pyprefix},g'` pyexecdir=`echo ${pyexecdir} | sed -e 's,[$][{]exec_prefix[}],${pyprefix},g'` fi + PYTHON_PREFIX=$($PYTHON -c 'import sys; print sys.prefix') PYTHON_EXEC_PREFIX=$($PYTHON -c 'import sys; print sys.exec_prefix') else # Namespace support requires Python support diff --git a/daemon/Makefile.am b/daemon/Makefile.am index 2818d88b..a623aaa1 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -7,7 +7,7 @@ # Makefile for building netns components. # -PYSBINDIR = ${PYTHON_EXEC_PREFIX}/sbin +PYSBINDIR = ${PYTHON_PREFIX}/sbin if WANT_NETNS SUBDIRS = src ns3