1 #ifndef CYCLUS_SRC_PYHOOKS_H_ 2 #define CYCLUS_SRC_PYHOOKS_H_ 69 #endif // ends CYCLUS_SRC_PYHOOKS_H_
void PyImportInit(void)
Convience function for import initialization.
std::string PyFindModule(std::string lib)
Finds a Python module and returns its filename.
void ClearPyAgentRefs(void)
Removes all Python agents from the internal cache.
void PyImportCallInit(void)
Convience function for imports when Python has already been started.
Agent * MakePyAgent(std::string lib, std::string agent, void *ctx)
Finds a Python module and returns an agent pointer from it.
void PyAppendInitTab(void)
Convience function for appending to import table for initialization.
void PyStop(void)
Closes the current Python session.
void PyStart(void)
Initialize Python functionality, this is a no-op if Python was not installed along with Cyclus...
taken directly from OsiSolverInterface.cpp on 2/17/14 from https://projects.coin-or.org/Osi/browser/trunk.
void PyDelAgent(int i)
Removes a single Python agent from the reference cache.
void InitFromPyAgent(Agent *src, Agent *dst, void *ctx)
Initializes a Python agent fron another agent.
bool PY_INTERP_INIT
Whether or not the Python interpreter has been initilized.
int PY_INTERP_COUNT
Because of NumPy #7595, we can only initialize & finalize the Python interpreter once.