Download astrbot/core/utils/runtime_env.py from qa1145/astrbbbb: direct link, hf CLI and curl.
- Browser
- Download file 207 Bytes
-
https://huggingface.co/spaces/qa1145/astrbbbb/resolve/main/astrbot/core/utils/runtime_env.py
- Command line
-
hf download hf://spaces/qa1145/astrbbbb/astrbot/core/utils/runtime_env.py
-
curl -L -o runtime_env.py https://huggingface.co/spaces/qa1145/astrbbbb/resolve/main/astrbot/core/utils/runtime_env.py
207 Bytes
| import os | |
| import sys | |
| def is_frozen_runtime() -> bool: | |
| return bool(getattr(sys, "frozen", False)) | |
| def is_packaged_desktop_runtime() -> bool: | |
| return os.environ.get("ASTRBOT_DESKTOP_CLIENT") == "1" | |