Download src/clfgui/gui/paths.py from smlflg/CLFGUI: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/smlflg/CLFGUI/resolve/main/src/clfgui/gui/paths.py
- Command line
-
hf download hf://smlflg/CLFGUI/src/clfgui/gui/paths.py
-
curl -L -o paths.py https://huggingface.co/smlflg/CLFGUI/resolve/main/src/clfgui/gui/paths.py
462 Bytes
| from __future__ import annotations | |
| import os | |
| from pathlib import Path | |
| from PySide6.QtCore import QStandardPaths | |
| from clfgui.kernel import default_db_path | |
| def qstandard_db_path() -> Path: | |
| if os.environ.get("CLFGUI_DB_PATH"): | |
| return default_db_path() | |
| location = QStandardPaths.writableLocation(QStandardPaths.StandardLocation.AppDataLocation) | |
| if not location: | |
| return default_db_path() | |
| return Path(location) / "clfgui.sqlite3" | |