Cleanup in paths.py and related documents

This commit is contained in:
2026-11-21 00:08:35 +01:00
parent 1575bec4ac
commit a419167939
4 changed files with 13 additions and 13 deletions
+5 -1
View File
@@ -537,7 +537,11 @@ Directory that contains the bundled application files at runtime:
| --- | --- |
| Frozen, `sys._MEIPASS` set | `Path(sys._MEIPASS)` |
| Frozen, no `_MEIPASS` | Directory of `sys.executable` |
| Source checkout | Parent of the `ki18n` package directory |
| Not frozen | Parent of the `ki18n` package directory |
When `ki18n` is installed as a package, "not frozen" means the directory that
contains the package (for example `site-packages`), not your application
directory. In that case pass `project_root` explicitly.
For a frozen application, pass `bundle_root()` as `project_root` if the `i18n/`
folder is bundled there: