File: default-bin-path.patch

package info (click to toggle)
leela-zero 0.17-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,772 kB
  • sloc: cpp: 20,958; python: 4,894; makefile: 66
file content (41 lines) | stat: -rw-r--r-- 1,652 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- a/autogtp/Game.h
+++ b/autogtp/Game.h
@@ -30,15 +30,12 @@
     Engine(const QString& network,
            const QString& options,
            const QStringList& commands = QStringList("time_settings 0 1 0"),
-           const QString& binary = QString("./leelaz")) :
+           const QString& binary = QString("leelaz")) :
         m_binary(binary), m_options(options),
         m_network(network), m_commands(commands) {
 #ifdef WIN32
         m_binary.append(".exe");
 #endif
-        if (!QFileInfo::exists(m_binary)) {
-            m_binary.remove(0, 2); // ./leelaz -> leelaz
-        }
     }
     Engine() = default;
     QString getCmdLine(void) const {
--- a/autogtp/Management.cpp
+++ b/autogtp/Management.cpp
@@ -106,7 +106,7 @@
     QTextStream(stdout) << "Starting tuning process, please wait..." << endl;
 
     Order tuneOrder = getWork(true);
-    QString tuneCmdLine("./leelaz --batchsize=5 --tune-only -w networks/");
+    QString tuneCmdLine("leelaz --batchsize=5 --tune-only -w networks/");
     tuneCmdLine.append(tuneOrder.parameters()["network"] + ".gz");
     if (m_gpusList.isEmpty()) {
         runTuningProcess(tuneCmdLine);
--- a/validation/main.cpp
+++ b/validation/main.cpp
@@ -82,7 +82,7 @@
     parser.addOption(gtpCommandOption);
     parser.addPositionalArgument(
         "[-- binary [--gtp-command...] [-- binary [--gtp-command...]]]",
-        "Binary to execute for the game (default ./leelaz).\n"
+        "Binary to execute for the game (default leelaz).\n"
         "Only --gtp-command options are parsed after a binary is specified");
 
     // Process the actual command line arguments given by the user