Myco / sitecustomize.py
byte-vortex's picture
Upload folder using huggingface_hub
4713899 verified
Raw
History Blame Contribute Delete
592 Bytes
"""Repository-wide Python startup defaults for CI helpers.
Python imports ``sitecustomize`` automatically when this repository is on
``sys.path``. GitHub Actions and hackathon validation sometimes run inline
``python -c`` snippets from the repository root before project helper scripts
can execute. Provide a harmless default for optional deployment secrets so
``os.environ["HF_BUILD_SMALL_HACKATHON_TOKEN"]`` does not raise ``KeyError``
when the secret has not been configured.
"""
from __future__ import annotations
import os
os.environ.setdefault("HF_BUILD_SMALL_HACKATHON_TOKEN", "")