mirror of
https://github.com/Kaelio/ktx.git
synced 2026-06-19 08:28:06 +02:00
fix(telemetry): make python identity env={} bypass os.environ and unset CI in tests
This commit is contained in:
parent
cdcadca1e1
commit
14431c01ee
4 changed files with 10 additions and 4 deletions
|
|
@ -26,7 +26,7 @@ def _telemetry_path(home_dir: Path | None = None) -> Path:
|
|||
|
||||
|
||||
def _env_disables(env: Mapping[str, str] | None = None) -> bool:
|
||||
source = env or os.environ
|
||||
source = os.environ if env is None else env
|
||||
return bool(
|
||||
source.get("KTX_TELEMETRY_DISABLED")
|
||||
or source.get("DO_NOT_TRACK")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue