Update contrib.
1 // Copyright Stefan Seefeld 2005.
2 // Distributed under the Boost Software License, Version 1.0. (See
3 // accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
5 #ifndef EXEC_SS20050616_HPP
6 # define EXEC_SS20050616_HPP
8 # include <boost/python/object.hpp>
9 # include <boost/python/str.hpp>
16 // Execute python source code from str.
17 // global and local are the global and local scopes respectively,
18 // used during execution.
21 exec(str string, object global = object(), object local = object());
23 // Execute python source code from file filename.
24 // global and local are the global and local scopes respectively,
25 // used during execution.
28 exec_file(str filename, object global = object(), object local = object());