Skip to content

Add setup:system_data_dir() and OS env override support#68

Open
uwiger wants to merge 1 commit intomasterfrom
uw-system-data
Open

Add setup:system_data_dir() and OS env override support#68
uwiger wants to merge 1 commit intomasterfrom
uw-system-data

Conversation

@uwiger
Copy link
Owner

@uwiger uwiger commented Mar 15, 2026

The setup:system_data_dir() function is synonymous with setup:data_dir(), unless the system_data_dir env is set specifically. This allows for separating "system-level" read-only data and application-level data in platform-like products.

Also, an os-level override function is added, such that the home, data_dir, system_data_dir and/or log_dir can be set using OS env variable. E.g. for setup:data_dir(), the OS env var SETUP_DATA_DIR can override other settings. The default prefix, SETUP, can be changed using -setup os_env_prefix P

@uwiger uwiger requested review from hanssv, tolbrino, velzevur and zxq9 March 15, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant