2018-04-04 23:44:29 +02:00
|
|
|
#!/usr/bin/env perl
|
2019-07-27 23:56:04 +02:00
|
|
|
# Backward compatibility redirection
|
2019-09-13 15:14:42 +02:00
|
|
|
|
2020-08-07 13:07:28 +02:00
|
|
|
## Copyright The Mbed TLS Contributors
|
2023-11-02 20:47:20 +01:00
|
|
|
## SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
2019-09-13 15:14:42 +02:00
|
|
|
##
|
|
|
|
|
2019-07-27 23:56:04 +02:00
|
|
|
my $py = $0;
|
2019-11-26 13:30:00 +01:00
|
|
|
$py =~ s/\.pl$/.py/ or die "Unable to determine the name of the Python script";
|
2019-07-29 23:42:50 +02:00
|
|
|
exec 'python3', $py, @ARGV;
|
2019-11-26 13:30:16 +01:00
|
|
|
print STDERR "$0: python3: $!. Trying python instead.\n";
|
2019-09-05 20:29:22 +02:00
|
|
|
exec 'python', $py, @ARGV;
|
|
|
|
print STDERR "$0: python: $!\n";
|
2019-07-29 23:42:50 +02:00
|
|
|
exit 127;
|