]> git.sesse.net Git - remoteglot/commitdiff
Respect $fathom_cmdline.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 29 Dec 2020 17:05:13 +0000 (18:05 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 29 Dec 2020 17:05:13 +0000 (18:05 +0100)
remoteglot.pl

index 48dbf96b45aec3f843e7547d992ad4d980d1149b..97003acd416b8660f936be325e098b634f8e79af 100755 (executable)
@@ -620,7 +620,7 @@ sub complete_using_tbprobe {
                return if ($pos->num_pieces() > 7);
 
                my $fen = $pos->fen();
-               my $pgn_text = `fathom --path=/srv/syzygy "$fen"`;
+               my $pgn_text = `$remoteglotconf::fathom_cmdline "$fen"`;
                my $pgn = Chess::PGN::Parse->new(undef, $pgn_text);
                return if (!defined($pgn) || !$pgn->read_game() || ($pgn->result ne '0-1' && $pgn->result ne '1-0'));
                $pgn->quick_parse_game;