We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81fb679 commit 9c80bfeCopy full SHA for 9c80bfe
src/seclab_taskflow_agent/path_utils.py
@@ -40,11 +40,11 @@ def log_dir() -> Path:
40
str: The path to the log directory.
41
"""
42
p = os.getenv("LOG_DIR")
43
- if p:
44
- return Path(p)
45
- return platformdirs.user_log_dir(appname="seclab-taskflow-agent",
46
- appauthor="GitHubSecurityLab",
47
- ensure_exists=True)
+ if not p:
+ p = platformdirs.user_log_dir(appname="seclab-taskflow-agent",
+ appauthor="GitHubSecurityLab",
+ ensure_exists=True)
+ return Path(p)
48
49
def log_file(filename: str) -> Path:
50
0 commit comments