From d758684a0c23b83b0ad5de1d60ffaaa2e046d910 Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Wed, 10 Apr 2002 17:29:36 +0000 Subject: [PATCH] fixes a problem which causes a trailing space to be added to the last element of PYTHONPATH. [SVN r13434] --- python.jam | 4 +++- v1/python.jam | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/python.jam b/python.jam index d986ef910..71f2c6412 100644 --- a/python.jam +++ b/python.jam @@ -405,7 +405,9 @@ rule python-runtest-aux ( target : sources + ) python = $(PYTHON_D) ; } - PYTHONPATH on $(target) = [ join $(pythonpath) : $(splitpath) ] ; + # adding the dummy at the end fixes a problem which causes a + # trailing space to be added to the last path. + PYTHONPATH on $(target) = [ join $(pythonpath) "" : $(splitpath) ] ; # set the path so that DLLs linked into extension modules will be # found diff --git a/v1/python.jam b/v1/python.jam index d986ef910..71f2c6412 100644 --- a/v1/python.jam +++ b/v1/python.jam @@ -405,7 +405,9 @@ rule python-runtest-aux ( target : sources + ) python = $(PYTHON_D) ; } - PYTHONPATH on $(target) = [ join $(pythonpath) : $(splitpath) ] ; + # adding the dummy at the end fixes a problem which causes a + # trailing space to be added to the last path. + PYTHONPATH on $(target) = [ join $(pythonpath) "" : $(splitpath) ] ; # set the path so that DLLs linked into extension modules will be # found