Skip to main content

Module paths

Module paths 

Source
Expand description

Where an application keeps its data.

Computed here rather than taken from the desktop host, so that a GUI run and a headless run of the same product agree by construction. Two code paths deriving the same directory independently is how a headless mode ends up looking at an empty database.

Constants§

DATA_DIR_ENV
Overrides the location entirely. Used by tests, and by anyone running a portable installation.

Functions§

data_dir
The directory for app_id, created if it does not exist.