Skip to content

fontlab_instamix.env

env

Facts about the running Python and the FontLab data folder.

The data folder is chosen in this order: an explicit argument, the FONTLAB_DATA_DIR environment variable, fontlab.flPreferences() .dataPathDefault when running inside FontLab, then the platform default.

Classes

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
DATA_ENV attribute
FONTLAB_PYTHON attribute
STANDARD_FOLDERS attribute
check_folders function (data: Path, *, version: str | None=None) -> list[Path] Check every standard directory before creating any of them.
data_dir function (explicit: str | os.PathLike | None=None) -> Path Return the FontLab data folder (not created).
describe function (data: Path | None=None) -> dict Summary used by <code>fontlab-instamix env</code>.
ensure_folders function (data: Path, *, version: str | None=None) -> None Create the standard data subfolders instamix links into.
fontlab_data_dir function () -> Path | None Ask FontLab for its data folder; <code>None</code> outside FontLab.
inside function (data: Path, path: Path) -> bool Check resolved parent containment, allowing a final editable package link.
machine function () -> str Normalised CPU architecture: <code>arm64</code><code> or </code><code>x86&#95;64</code>.
normalize_arch function (name: str) -> str
python_version function () -> str <code>major.minor</code> of the running Python, e.g.
require_inside function (data: Path, path: Path) -> None Refuse destination parents outside the resolved data root.
site_packages function (data: Path, *, version: str | None=None) -> Path <code>&lt;data&gt;/python/3.11/site-packages</code> used by FontLab's sys.path.
target function () -> Target Use embedded host facts; standalone defaults explicitly to FontLab 9.
uv_platform function (plat: str=sys.platform, arch: str | None=None) -> str Target triple for <code>uv pip install --python-platform</code>.