From 18f033fefb307917e088b9499ed18b7a2a64bde9 Mon Sep 17 00:00:00 2001 From: Mehrdad Date: Thu, 30 Jun 2016 16:03:40 -0700 Subject: [PATCH] Use proper temp directory --- lib/python/ray/config.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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}"