From 4b83915335781d51186f9deb6ac5c1070d85ba81 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 8 Oct 2024 13:03:49 +0200 Subject: [PATCH] Prefer bundled python for windows/gdb --- tools/x-win/package.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/x-win/package.sh b/tools/x-win/package.sh index 3b192d722c..06b59459c1 100755 --- a/tools/x-win/package.sh +++ b/tools/x-win/package.sh @@ -313,6 +313,7 @@ if test -n "$PACKAGE_GDB"; then cp -r ${SRCCACHE}/gdb12 $DESTDIR/gdb12 cat > $DESTDIR/debug.bat << EOF set PYTHONPATH=%~dp0\gdb12\python3.10 +set PATH=%~dp0\gdb12\;%PATH% cd bin ..\\gdb12\\gdb.exe -ex "set logging overwrite on" -ex "set height 0" -ex "set logging file %UserProfile%\\${PRODUCT_NAME}-debug.log" -ex "set logging enabled on" -ex "target exec ${PRODUCT_EXE}" -ex "run" EOF