6b7e6b44f1
Python Build and Type Check / python-ci (ubuntu-latest, 3.11) (push) Has been cancelled
Python Build and Type Check / python-ci (ubuntu-latest, 3.13) (push) Has been cancelled
Python Build and Type Check / python-ci (windows-latest, 3.11) (push) Has been cancelled
Python Build and Type Check / python-ci (windows-latest, 3.13) (push) Has been cancelled
Python Integration Tests / python-ci (ubuntu-latest, 3.13) (push) Has been cancelled
Python Integration Tests / python-ci (windows-latest, 3.13) (push) Has been cancelled
Python Notebook Tests / python-ci (ubuntu-latest, 3.13) (push) Has been cancelled
Python Notebook Tests / python-ci (windows-latest, 3.13) (push) Has been cancelled
Python Smoke Tests / python-ci (ubuntu-latest, 3.13) (push) Has been cancelled
Python Smoke Tests / python-ci (windows-latest, 3.13) (push) Has been cancelled
Python Unit Tests / python-ci (ubuntu-latest, 3.13) (push) Has been cancelled
Python Unit Tests / python-ci (windows-latest, 3.13) (push) Has been cancelled
gh-pages / build (push) Has been cancelled
Python Publish (pypi) / Upload release to PyPI (push) Has been cancelled
Spellcheck / spellcheck (push) Has been cancelled
21 lines
549 B
Python
21 lines
549 B
Python
# Copyright (c) 2024 Microsoft Corporation.
|
|
# Licensed under the MIT License
|
|
|
|
"""Data sources default module."""
|
|
|
|
import os
|
|
|
|
container_name = "data"
|
|
blob_container_name = os.getenv("BLOB_CONTAINER_NAME", container_name)
|
|
blob_account_name = os.getenv("BLOB_ACCOUNT_NAME")
|
|
|
|
local_data_root = os.getenv("DATA_ROOT")
|
|
|
|
LISTING_FILE = "listing.json"
|
|
|
|
if local_data_root is None and blob_account_name is None:
|
|
error_message = (
|
|
"Either DATA_ROOT or BLOB_ACCOUNT_NAME environment variable must be set."
|
|
)
|
|
raise ValueError(error_message)
|