hyperell_regulator.paths module

Cache paths relative to HYPERELL_REGULATOR_DATA or the working directory.

EXAMPLES:

sage: import os
sage: from hyperell_regulator.paths import data_dir, data_path
sage: os.environ["HYPERELL_REGULATOR_DATA"] = tmp_dir()
sage: data_path("lmfdb_cache", "g2c.json").startswith(str(data_dir()))
True
data_dir()[source]

The cache directory.

data_path(*parts)[source]

A cache path as a string; no directories are created.

ensure_parent(path)[source]

Create the parent directory and return path.