Skip to content

Commit 6398cee

Browse files
committed
Pass venv's interpreter path as executable in python config
1 parent 71f218f commit 6398cee

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/python-config-stub

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ then
88
exit 1
99
fi
1010

11-
VENV_DIR=$(realpath.exe --canonicalize-missing $SCRIPT_DIR/../../install/venv)
11+
VENV_DIR=$(realpath.exe --canonicalize-missing $SCRIPT_DIR/../../install/venv/)
1212

1313
# The first argument is the path to python-config.py, ignore it.
1414

gdb/python/python.c

+5
Original file line numberDiff line numberDiff line change
@@ -2114,6 +2114,11 @@ do_start_initialization ()
21142114
if (PyStatus_Exception (status))
21152115
goto init_done;
21162116

2117+
status = PyConfig_SetString (&config, &config.executable,
2118+
progname_copy);
2119+
if (PyStatus_Exception (status))
2120+
goto init_done;
2121+
21172122
config.write_bytecode = python_write_bytecode ();
21182123
config.use_environment = !python_ignore_environment;
21192124

0 commit comments

Comments
 (0)