1#~ Copyright 2005 Rene Rivera. 2#~ Distributed under the Boost Software License, Version 1.0. 3#~ (See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) 4 5# Automatic configuration for Python tools and librries. To use, just import this module. 6 7import os ; 8import toolset : using ; 9 10if [ os.name ] = NT 11{ 12 for local R in 2.4 2.3 2.2 13 { 14 local python-path = [ W32_GETREG 15 "HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\$(R)\\InstallPath" ] ; 16 local python-version = $(R) ; 17 18 if $(python-path) 19 { 20 if --debug-configuration in [ modules.peek : ARGV ] 21 { 22 ECHO "notice:" using python ":" $(python-version) ":" $(python-path) ; 23 } 24 using python : $(python-version) : $(python-path) ; 25 } 26 } 27} 28