Use sys.prefix instead of sys.exec_prefix for python sbin programs.
This commit is contained in:
parent
1ed1775228
commit
2f3ec89ef4
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# Makefile for building netns components.
|
||||
#
|
||||
|
||||
PYSBINDIR = ${PYTHON_EXEC_PREFIX}/sbin
|
||||
PYSBINDIR = ${PYTHON_PREFIX}/sbin
|
||||
|
||||
if WANT_NETNS
|
||||
SUBDIRS = src ns3
|
||||
|
|
Loading…
Reference in a new issue