rogue
Loading...
Searching...
No Matches
module.cpp
Go to the documentation of this file.
1
17#include "rogue/Directives.h"
18
20
21#include <boost/python.hpp>
22
25
26namespace bp = boost::python;
28
30 // Map to rogue.protocols.rocev2 sub-module
31 bp::object module(
32 bp::handle<>(bp::borrowed(PyImport_AddModule("rogue.protocols.rocev2"))));
33
34 bp::scope().attr("rocev2") = module;
35 bp::scope io_scope = module;
36
37 rpr::Core::setup_python();
38 rpr::Server::setup_python();
39}