Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /trisongz_lazyops /src /lzl /cmd /envvars.py
| from __future__ import annotations | |
| """ | |
| Common Environment Variables | |
| """ | |
| import os | |
| from pathlib import Path | |
| GITHUB_TOKEN: str = os.environ.get('GH_TOKEN', os.getenv('GITHUB_TOKEN', '')) | |
| # Paths | |
| TEMP_PATH = os.getenv('TEMP_PATH', '/tmp') | |
| BUILD_CONFIG_PATH = Path(os.getenv('BUILD_CONFIG_PATH', f'{TEMP_PATH}/build_config.yaml')) | |
| LIB_PATH = Path(__file__).parent | |
| ASSETS_PATH = LIB_PATH.joinpath('assets') | |
| APP_HOME = os.getenv('APP_HOME', '/app') | |
| APP_PATH = Path(APP_HOME) | |
| REQUIREMENTS_PATH = Path(os.getenv('REQUIREMENTS_PATH', '/tmp/requirements')) | |
| if pkgs_path := os.getenv('PKGS_PATH'): | |
| PKGS_PATH = Path(pkgs_path) | |
| else: | |
| PKGS_PATH = REQUIREMENTS_PATH.joinpath('pkgs') | |
| # DEFAULT_CONFIG_PATH = _HERE.joinpath('default_build_config.yaml') | |
Xet Storage Details
- Size:
- 753 Bytes
- Xet hash:
- b6f57e5875ce2922ea96aa1268cdae51e057ed82f9feea5a3d91e6b6f113c65d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.