mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 17:18:45 +08:00
Use proper temp directory
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user