diff --git a/INSTALL.md b/INSTALL.md index 7cc515d..b7f5ea2 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -9,7 +9,7 @@ * Install Python using [Homebrew](https://brew.sh/) by executing `brew install python3` * Alternatively download and install [Python 3.7.5](https://www.python.org/downloads/release/python-375/) * Install Katago using [Homebrew](https://brew.sh/) by executing `brew install katago` -* You can also follow instructions [here](https://github.com/lightvector/KataGo) to compile KataGo yourself. + * You can also follow instructions [here](https://github.com/lightvector/KataGo) to compile KataGo yourself. ## Installation and running KaTrain from PyPi * Run `pip3 install katrain` diff --git a/katrain/core/base_katrain.py b/katrain/core/base_katrain.py index 91e5e54..a3e6e94 100644 --- a/katrain/core/base_katrain.py +++ b/katrain/core/base_katrain.py @@ -69,7 +69,7 @@ class KaTrainBase: print(message) def _load_config(self, force_package_config): - if len(sys.argv) > 1 and sys.argv[1].endswith(".json"): + if len(sys.argv) > 1 and sys.argv[1].endswith("config.json"): config_file = os.path.abspath(sys.argv[1]) self.log(f"Using command line config file {config_file}", OUTPUT_INFO) else: