Make GenerateFancyCaptchas.php execute captcha(-old)?.py via python3

Bug: T268468
Change-Id: I3d5113d1a83eea9f711ee2bb206fe9423431b887
This commit is contained in:
Reedy 2020-12-01 18:28:00 +00:00
parent 3b477b543d
commit 3b9ab99b1d

View file

@ -96,7 +96,7 @@ class GenerateFancyCaptchas extends Maintenance {
$captchaScript = 'captcha-old.py'; $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( dirname( __DIR__ ) . '/' . $captchaScript ),
wfEscapeShellArg( $wgCaptchaSecret ), wfEscapeShellArg( $wgCaptchaSecret ),
wfEscapeShellArg( $tmpDir ), wfEscapeShellArg( $tmpDir ),