mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
pm3 calling python scripts: give full path to script in argv[0]
This commit is contained in:
parent
1e0661edf6
commit
3a5f3e94d1
1 changed files with 1 additions and 1 deletions
|
@ -429,7 +429,7 @@ static int CmdScriptRun(const char *Cmd) {
|
|||
|
||||
//int argc, char ** argv
|
||||
char *argv[128];
|
||||
argv[0] = filename;
|
||||
argv[0] = script_path;
|
||||
int argc = split(arguments, &argv[1]);
|
||||
#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 10
|
||||
wchar_t *py_args[argc + 1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue