From 3b9ab99b1d715d1a9bdf1dcaf52a61b3759b61aa Mon Sep 17 00:00:00 2001 From: Reedy Date: Tue, 1 Dec 2020 18:28:00 +0000 Subject: [PATCH] Make GenerateFancyCaptchas.php execute captcha(-old)?.py via python3 Bug: T268468 Change-Id: I3d5113d1a83eea9f711ee2bb206fe9423431b887 --- maintenance/GenerateFancyCaptchas.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maintenance/GenerateFancyCaptchas.php b/maintenance/GenerateFancyCaptchas.php index f0187e1f8..755c5c1bb 100644 --- a/maintenance/GenerateFancyCaptchas.php +++ b/maintenance/GenerateFancyCaptchas.php @@ -96,7 +96,7 @@ class GenerateFancyCaptchas extends Maintenance { $captchaScript = 'captcha-old.py'; } - $cmd = sprintf( "python %s --key %s --output %s --count %s --dirs %s", + $cmd = sprintf( "python3 %s --key %s --output %s --count %s --dirs %s", wfEscapeShellArg( dirname( __DIR__ ) . '/' . $captchaScript ), wfEscapeShellArg( $wgCaptchaSecret ), wfEscapeShellArg( $tmpDir ),