diff --git a/lib/python/ray/config.py b/lib/python/ray/config.py index f6a54ec2c..e0b1e3fe9 100644 --- a/lib/python/ray/config.py +++ b/lib/python/ray/config.py @@ -1,2 +1,5 @@ -LOG_DIRECTORY = "/tmp/raylogs/" +import os.path +import sys +import tempfile +LOG_DIRECTORY = os.path.join("/tmp" if sys.platform.startswith("darwin") else tempfile.gettempdir(), "raylogs") LOG_TIMESTAMP = "{:%Y-%m-%d=%H:%M:%S}"