Print LUA and Python interpreter versions
This commit is contained in:
1 parent
9f3e94c668
commit
2094f5f92b
2 files changed
+9
-1
No files matched your search
+8
-1
@@ -22,6 +22,10 @@
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#ifdef HAVE_PYTHON
|
||||
#include <Python.h>
|
||||
#endif
|
||||
|
||||
#include "cmdparser.h" // command_t
|
||||
#include "cliparser.h"
|
||||
#include "comms.h"
|
||||
@@ -41,6 +45,8 @@
|
||||
#include "proxgui.h"
|
||||
#include "graph.h" // for graph data
|
||||
|
||||
#include "lua.h"
|
||||
|
||||
static int CmdHelp(const char *Cmd);
|
||||
|
||||
static void lookup_chipid_short(uint32_t iChipID, uint32_t mem_used) {
|
||||
@@ -1667,7 +1673,7 @@ void pm3_version(bool verbose, bool oneliner) {
|
||||
PrintAndLogEx(NORMAL, " native BT support......... " _YELLOW_("absent"));
|
||||
#endif
|
||||
#ifdef HAVE_PYTHON
|
||||
PrintAndLogEx(NORMAL, " Python script support..... " _GREEN_("present"));
|
||||
PrintAndLogEx(NORMAL, " Python script support..... " _GREEN_("present") " (" _YELLOW_(PY_VERSION) ")");
|
||||
#else
|
||||
PrintAndLogEx(NORMAL, " Python script support..... " _YELLOW_("absent"));
|
||||
#endif
|
||||
@@ -1676,6 +1682,7 @@ void pm3_version(bool verbose, bool oneliner) {
|
||||
#else
|
||||
PrintAndLogEx(NORMAL, " Lua SWIG support.......... " _YELLOW_("absent"));
|
||||
#endif
|
||||
PrintAndLogEx(NORMAL, " Lua runtime version....... " _GREEN_(LUA_RELEASE));
|
||||
#ifdef HAVE_PYTHON_SWIG
|
||||
PrintAndLogEx(NORMAL, " Python SWIG support....... " _GREEN_("present"));
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user