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
|
|
|
|
|
|
|
## Copyright (C) 2019, ARM Limited, All Rights Reserved
|
|
|
|
## SPDX-License-Identifier: Apache-2.0
|
|
|
|
##
|
|
|
|
## Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
|
|
## not use this file except in compliance with the License.
|
|
|
|
## You may obtain a copy of the License at
|
|
|
|
##
|
|
|
|
## http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
##
|
|
|
|
## Unless required by applicable law or agreed to in writing, software
|
|
|
|
## distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
## WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
## See the License for the specific language governing permissions and
|
|
|
|
## limitations under the License.
|
|
|
|
##
|
|
|
|
## This file is part of Mbed TLS (https://tls.mbed.org)
|
|
|
|
|
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;
|