blob: ca02b9046090c7ae30f0267de3134187a1447214 [file] [log] [blame]
fbrosson533407a2018-04-04 21:44:29 +00001#!/usr/bin/env perl
Gilles Peskinebf359c72019-07-27 23:56:04 +02002# Backward compatibility redirection
Gilles Peskine0409bcd2019-09-13 15:14:42 +02003
Bence Szépkúti1e148272020-08-07 13:07:28 +02004## Copyright The Mbed TLS Contributors
Dave Rodgman7ff79652023-11-03 12:04:52 +00005## SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
Gilles Peskine0409bcd2019-09-13 15:14:42 +02006##
Gilles Peskine0409bcd2019-09-13 15:14:42 +02007
Gilles Peskinebf359c72019-07-27 23:56:04 +02008my $py = $0;
Gilles Peskinedf78e492019-11-26 13:30:00 +01009$py =~ s/\.pl$/.py/ or die "Unable to determine the name of the Python script";
Gilles Peskine6cf31272019-07-29 23:42:50 +020010exec 'python3', $py, @ARGV;
Gilles Peskine987e2712019-11-26 13:30:16 +010011print STDERR "$0: python3: $!. Trying python instead.\n";
Gilles Peskinea103c182019-09-05 20:29:22 +020012exec 'python', $py, @ARGV;
13print STDERR "$0: python: $!\n";
Gilles Peskine6cf31272019-07-29 23:42:50 +020014exit 127;