Report an error if switching to Python fails

This commit is contained in:
Gilles Peskine 2019-07-29 23:42:50 +02:00 committed by Darryl Green
parent 5d650c86b4
commit 1854ec45af

View File

@ -2,4 +2,6 @@
# Backward compatibility redirection # Backward compatibility redirection
my $py = $0; my $py = $0;
$py =~ s/\.pl$/.py/; $py =~ s/\.pl$/.py/;
exec 'python3', $py, @ARGV exec 'python3', $py, @ARGV;
print STDERR "$0: python3: $!\n";
exit 127;