sl@0: // Copyright Stefan Seefeld 2005. sl@0: // Distributed under the Boost Software License, Version 1.0. (See sl@0: // accompanying file LICENSE_1_0.txt or copy at sl@0: // http://www.boost.org/LICENSE_1_0.txt) sl@0: #ifndef EXEC_SS20050616_HPP sl@0: # define EXEC_SS20050616_HPP sl@0: sl@0: # include sl@0: # include sl@0: sl@0: namespace boost sl@0: { sl@0: namespace python sl@0: { sl@0: sl@0: // Execute python source code from str. sl@0: // global and local are the global and local scopes respectively, sl@0: // used during execution. sl@0: object sl@0: BOOST_PYTHON_DECL sl@0: exec(str string, object global = object(), object local = object()); sl@0: sl@0: // Execute python source code from file filename. sl@0: // global and local are the global and local scopes respectively, sl@0: // used during execution. sl@0: object sl@0: BOOST_PYTHON_DECL sl@0: exec_file(str filename, object global = object(), object local = object()); sl@0: sl@0: } sl@0: } sl@0: sl@0: #endif