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