From 3d43006cd6cce5c1333828c215fb7b059f473bd5 Mon Sep 17 00:00:00 2001 From: William Brannon Date: Tue, 19 Dec 2023 13:19:18 -0700 Subject: [PATCH] Modify default log directory --- python/fusion_engine_client/utils/log.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/fusion_engine_client/utils/log.py b/python/fusion_engine_client/utils/log.py index 9d3c300c..b9901398 100644 --- a/python/fusion_engine_client/utils/log.py +++ b/python/fusion_engine_client/utils/log.py @@ -25,22 +25,22 @@ # Determine the default log base directory in the following order of priority: # - P1_LOG_BASE_DIR environment variable -# - If Windows, set to `My Documents/logs` +# - If Windows, set to `My Documents/point_one/logs` # - Otherwise (Linux/Mac): # - Use `/logs` if it exists -# - Otherwise, use `~/logs` +# - Otherwise, use `~/point_one/logs` # # Note that this is the default value. It can still be overridden by setting `log_base_dir` in all functions below # (typically controlled by a --log-base-dir argument to an application). DEFAULT_LOG_BASE_DIR = os.getenv('P1_LOG_BASE_DIR') if DEFAULT_LOG_BASE_DIR is None: if os.name == "nt": - DEFAULT_LOG_BASE_DIR = os.path.expandvars("%USERPROFILE%/Documents/logs") + DEFAULT_LOG_BASE_DIR = os.path.expandvars("%USERPROFILE%/Documents/point_one/logs") else: if os.path.exists('/logs'): DEFAULT_LOG_BASE_DIR = '/logs' else: - DEFAULT_LOG_BASE_DIR = os.path.expanduser("~/logs") + DEFAULT_LOG_BASE_DIR = os.path.expanduser("~/point_one/logs") def find_log_by_pattern(pattern, log_base_dir=DEFAULT_LOG_BASE_DIR, allow_multiple=False,