Posted March 31, 2025

if False:
#Please start this script with a python interpreter: python /path/to/gogrepoc.py
pass
It just feels cleaner to avoid having a functional python call inside a code path that's explicitly not to be executed.
Letting the shell reach the "import" commands is by far worse than this imperfect solution. An average user having Imagemagick installed would end up with a "useless mouse pointer"; to avoid a reboot or killing the whole X server, one must open a shell by keyboard, avoiding the mouse entirely, realise what's happening, and either kill a series of "imports" one after the other, or their parent shell and the one leftover "import". That's what happened to me.