Browse Source

C++ string version

AllGroupDevicesShowHandshake
Volker Birk 6 years ago
parent
commit
7de7462e44
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/pEpmodule.cc

+ 6
- 1
src/pEpmodule.cc View File

@ -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