Use sys.prefix instead of sys.exec_prefix for python sbin programs.

This commit is contained in:
tgoff0 2015-05-22 00:55:13 +00:00
parent 1ed1775228
commit 2f3ec89ef4
2 changed files with 2 additions and 1 deletions

View file

@ -250,6 +250,7 @@ if test "x$want_python" = "xyes"; then
pythondir=`echo ${pythondir} | sed -e 's,[$][{]prefix[}],${pyprefix},g'` pythondir=`echo ${pythondir} | sed -e 's,[$][{]prefix[}],${pyprefix},g'`
pyexecdir=`echo ${pyexecdir} | sed -e 's,[$][{]exec_prefix[}],${pyprefix},g'` pyexecdir=`echo ${pyexecdir} | sed -e 's,[$][{]exec_prefix[}],${pyprefix},g'`
fi fi
PYTHON_PREFIX=$($PYTHON -c 'import sys; print sys.prefix')
PYTHON_EXEC_PREFIX=$($PYTHON -c 'import sys; print sys.exec_prefix') PYTHON_EXEC_PREFIX=$($PYTHON -c 'import sys; print sys.exec_prefix')
else else
# Namespace support requires Python support # Namespace support requires Python support

View file

@ -7,7 +7,7 @@
# Makefile for building netns components. # Makefile for building netns components.
# #
PYSBINDIR = ${PYTHON_EXEC_PREFIX}/sbin PYSBINDIR = ${PYTHON_PREFIX}/sbin
if WANT_NETNS if WANT_NETNS
SUBDIRS = src ns3 SUBDIRS = src ns3