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.
1 parent afb8d6c commit 2c16965Copy full SHA for 2c16965
trinity/utils/dlc_utils.py
@@ -41,9 +41,9 @@ def is_running() -> bool:
41
"""Check if ray cluster is running."""
42
python_dir = os.path.dirname(sys.executable)
43
ray_path = os.path.join(python_dir, "ray")
44
- if os.path.exists(ray_path) is False:
+ if not os.path.exists(ray_path):
45
ray_path = "ray"
46
- ret = subprocess.run(f"{ray_path} status", shell=True, capture_output=True)
+ ret = subprocess.run([ray_path, "status"], capture_output=True)
47
return ret.returncode == 0
48
49
0 commit comments