Skip to content

Commit

Permalink
add consent script
Browse files Browse the repository at this point in the history
Signed-off-by: Nok Lam Chan <[email protected]>
  • Loading branch information
noklam committed Sep 3, 2024
1 parent e22234e commit 4a5f140
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions bundled/tool/check_consent.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from kedro_telemetry.plugin import _check_for_telemetry_consent
import logging

logger = logging.getLogger(__name__)

if __name__ == "__main__":
from pathlib import Path
import sys

if len(sys.argv) > 1:
path = Path(sys.argv[1])
else:
path = Path.cwd()
consent = _check_for_telemetry_consent(path)
logger.debug(f"Consent for telemetry: {consent}")

0 comments on commit 4a5f140

Please sign in to comment.