Browse Source

C++ string version

PYADPT-55
Volker Birk 9 years ago
parent
commit
7de7462e44
  1. 7
      src/pEpmodule.cc

7
src/pEpmodule.cc

@ -1,11 +1,16 @@
#include "pEpmodule.hh"
#include <pEp/pEpEngine.h>
#include <string>
namespace pEp {
namespace PythonAdapter {
using namespace std;
PyObject *about(PyObject *self, PyObject *args)
{
return PyUnicode_FromString(version_string);
string version = string(version_string) + "\np≡p version "
+ PEP_VERSION + "\n";
return PyUnicode_FromString(version.c_str());
}
}
}

Loading…
Cancel
Save