We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
arctic_training_run
PATH
1 parent 3b23e51 commit 2544f03Copy full SHA for 2544f03
arctic_training_cli.py
@@ -15,6 +15,7 @@
15
16
17
import argparse
18
+import os
19
import shutil
20
import textwrap
21
from pathlib import Path
@@ -54,7 +55,10 @@ def main():
54
55
if not args.config.exists():
56
raise FileNotFoundError(f"Config file {args.config} not found.")
57
- exe_path = shutil.which("arctic_training_run")
58
+ runner_name = "arctic_training_run"
59
+ exe_path = shutil.which(runner_name)
60
+ if exe_path is None:
61
+ raise ValueError(f"can't find {runner_name} in paths of env var PATH={os.environ['PATH']}")
62
63
ds_runner(
64
[
0 commit comments