Use proper temp directory

This commit is contained in:
Mehrdad
2016-06-30 16:03:40 -07:00
parent 8fde648752
commit 18f033fefb
+4 -1
View File
@@ -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}"