Revision history [back]
dear Wing, thanks for the heads-up. I am using wingdb ; I noted a shortcoming : by default it tries to execute the script using python , but python is not a command nowadays in Debian. So I conjured this version (with the help of an AI agent) that , when called as wingdb script
- if
WINGDB_PYTHONis defined, uses that; otherwise - scans the firse line of the script, and if there is a shebang deduces the correct version of python from it e.g.
#!/usr/bin/env python3→python3#!/usr/bin/env python3 -X mem→python3 -X mem#!/usr/bin/python3 -X that→python3 -X thatand so on
- if the above fails, then sets
WINGDB_PYTHON=python??looking for an existing version ofpython
