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