Compatibility redirect: if python3 is not available, try python

This commit is contained in:
Gilles Peskine 2019-09-05 20:29:22 +02:00
parent f686042554
commit a103c18032

View File

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