Make LUA scripting work even if proxmark3 is called from arbitrary working directory
- add @gpakosz whereami library (https://github.com/gpakosz/whereami) in order to ... - determine and set absolute paths for LUA scripts and LUA libraries
This commit is contained in:
@@ -12,6 +12,10 @@
|
||||
|
||||
#include <lua.h>
|
||||
|
||||
#define LUA_LIBRARIES_DIRECTORY "lualibs/"
|
||||
#define LUA_SCRIPTS_DIRECTORY "scripts/"
|
||||
#define LUA_LIBRARIES_WILDCARD "?.lua"
|
||||
|
||||
/**
|
||||
* @brief set_libraries loads the core components of pm3 into the 'pm3'
|
||||
* namespace within the given lua_State
|
||||
|
||||
Reference in New Issue
Block a user