First time here? Check out the FAQ!

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_PYTHON is 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 python3python3
    • #!/usr/bin/env python3 -X mempython3 -X mem
    • #!/usr/bin/python3 -X thatpython3 -X that and so on
  • if the above fails, then sets WINGDB_PYTHON=python?? looking for an existing version of python

here is the script