os/ossrv/ossrv_pub/boost_apis/boost/python/exec.hpp
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/ossrv_pub/boost_apis/boost/python/exec.hpp	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,33 @@
     1.4 +// Copyright Stefan Seefeld 2005.
     1.5 +// Distributed under the Boost Software License, Version 1.0. (See
     1.6 +// accompanying file LICENSE_1_0.txt or copy at
     1.7 +// http://www.boost.org/LICENSE_1_0.txt)
     1.8 +#ifndef EXEC_SS20050616_HPP
     1.9 +# define EXEC_SS20050616_HPP
    1.10 +
    1.11 +# include <boost/python/object.hpp>
    1.12 +# include <boost/python/str.hpp>
    1.13 +
    1.14 +namespace boost 
    1.15 +{ 
    1.16 +namespace python 
    1.17 +{
    1.18 +
    1.19 +// Execute python source code from str.
    1.20 +// global and local are the global and local scopes respectively,
    1.21 +// used during execution.
    1.22 +object 
    1.23 +BOOST_PYTHON_DECL 
    1.24 +exec(str string, object global = object(), object local = object());
    1.25 +
    1.26 +// Execute python source code from file filename.
    1.27 +// global and local are the global and local scopes respectively,
    1.28 +// used during execution.
    1.29 +object 
    1.30 +BOOST_PYTHON_DECL 
    1.31 +exec_file(str filename, object global = object(), object local = object());
    1.32 +
    1.33 +}
    1.34 +}
    1.35 +
    1.36 +#endif