You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 lines
661 B

#include "pEpmodule.hh"
#include <string>
namespace pEp {
namespace PythonAdapter {
using namespace std;
PyObject *about(PyObject *self, PyObject *args)
{
string version = string(version_string) + "\np≡p version "
+ PEP_VERSION + "\n";
return PyUnicode_FromString(version.c_str());
}
}
PEP_SESSION session;
void module_free(void *)
{
release(session);
}
}
using namespace pEp;
PyMODINIT_FUNC PyInit_pEp(void)
{
PEP_STATUS status = init(&session);
if (status != PEP_STATUS_OK)
return NULL;
return PyModule_Create(&pEpmodule);
}