Spaces:
Paused
Paused
Download project_settings.py from miyuki2026/OpenMiniMind: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/miyuki2026/OpenMiniMind/resolve/61ba079db070fdfd59dff306f78e320ca508b402/project_settings.py
- Command line
-
hf download hf://spaces/miyuki2026/OpenMiniMind@61ba079db070fdfd59dff306f78e320ca508b402/project_settings.py
-
curl -L -o project_settings.py https://huggingface.co/spaces/miyuki2026/OpenMiniMind/resolve/61ba079db070fdfd59dff306f78e320ca508b402/project_settings.py
607 Bytes
| #!/usr/bin/python3 | |
| # -*- coding: utf-8 -*- | |
| import os | |
| from pathlib import Path | |
| from toolbox.os.environment import EnvironmentManager | |
| project_path = os.path.abspath(os.path.dirname(__file__)) | |
| project_path = Path(project_path) | |
| time_zone_info = "Asia/Shanghai" | |
| log_directory = project_path / "logs" | |
| log_directory.mkdir(parents=True, exist_ok=True) | |
| temp_directory = project_path / "temp" | |
| temp_directory.mkdir(parents=True, exist_ok=True) | |
| environment = EnvironmentManager( | |
| path=os.path.join(project_path, "dotenv"), | |
| env=os.environ.get("environment", "dev"), | |
| ) | |
| if __name__ == "__main__": | |
| pass | |