rogue
Loading...
Searching...
No Matches
module.cpp
Go to the documentation of this file.
1
18#include "rogue/Directives.h"
19
21
22#include <RogueConfig.h>
23
24#include <boost/python.hpp>
25
28#ifdef ROGUE_ROCEV2
30#endif
35
36namespace bp = boost::python;
37
39 // map the IO namespace to a sub-module
40 bp::object module(bp::handle<>(bp::borrowed(PyImport_AddModule("rogue.protocols"))));
41
42 // make "from mypackage import class1" work
43 bp::scope().attr("protocols") = module;
44
45 // set the current scope to the new sub-module
46 bp::scope io_scope = module;
47
54#ifdef ROGUE_ROCEV2
56#endif
57}
void setup_module()
Definition module.cpp:38