Use $HOME/.config/depot_tools on linux for .cfg files

Or $XDG_CONFIG_HOME/.config/depot_tools if set

A followup CL can add support for win/macos.

Bug: b/345092320
Change-Id: I877baa4d7fd912b42cfcd88ad0aa347b700a89f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5604606
Commit-Queue: Richard Wang <richardwa@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
This commit is contained in:
Richard Wang
2024-06-12 04:02:48 +00:00
committed by LUCI CQ
parent 441cd5c465
commit 6f180c0a23
7 changed files with 114 additions and 5 deletions

View File

@@ -11,10 +11,11 @@ import sys
import ninjalog_uploader
import subprocess2
import utils
THIS_DIR = os.path.dirname(__file__)
UPLOADER = os.path.join(THIS_DIR, "ninjalog_uploader.py")
CONFIG = os.path.join(THIS_DIR, "ninjalog.cfg")
CONFIG = utils.depot_tools_config_path("ninjalog.cfg")
VERSION = 3