From 3a5f3e94d18fd0abce09c98ee06fd66269dfb610 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 11 Aug 2024 11:53:13 +0200 Subject: [PATCH] pm3 calling python scripts: give full path to script in argv[0] --- client/src/cmdscript.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/cmdscript.c b/client/src/cmdscript.c index 91c1ce50f..8506a7734 100644 --- a/client/src/cmdscript.c +++ b/client/src/cmdscript.c @@ -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];