Merge pull request #2935 from gilles-peskine-arm/config_py-pl_error_clarity
config.pl: If python3 fails, make it clear that this isn't fatal
This commit is contained in:
commit
a78acf1c6f
1 changed files with 2 additions and 2 deletions
|
@ -19,9 +19,9 @@
|
||||||
## This file is part of Mbed TLS (https://tls.mbed.org)
|
## This file is part of Mbed TLS (https://tls.mbed.org)
|
||||||
|
|
||||||
my $py = $0;
|
my $py = $0;
|
||||||
$py =~ s/\.pl$/.py/;
|
$py =~ s/\.pl$/.py/ or die "Unable to determine the name of the Python script";
|
||||||
exec 'python3', $py, @ARGV;
|
exec 'python3', $py, @ARGV;
|
||||||
print STDERR "$0: python3: $!\n";
|
print STDERR "$0: python3: $!. Trying python instead.\n";
|
||||||
exec 'python', $py, @ARGV;
|
exec 'python', $py, @ARGV;
|
||||||
print STDERR "$0: python: $!\n";
|
print STDERR "$0: python: $!\n";
|
||||||
exit 127;
|
exit 127;
|
||||||
|
|
Loading…
Reference in a new issue