Argh, just had to go back and tweak my Python script.
Of course, I had forgotten virtually everything I had learnt from the last time.
Then I had to disengage my Java brain too.
In the end I gave up and asked our in-house Python guy.
And all I wanted to do was exit if a path wasn’t supplied on the command line.