Skip to content

Add support for NUNIF_HOME environment variable#550

Closed
Copilot wants to merge 1 commit intonunif_homefrom
copilot/sub-pr-549
Closed

Add support for NUNIF_HOME environment variable#550
Copilot wants to merge 1 commit intonunif_homefrom
copilot/sub-pr-549

Conversation

Copy link

Copilot AI commented Nov 29, 2025

Adds NUNIF_HOME environment variable support for controlling where pretrained models, configs, cache, temp files, and lock files are stored. Useful for packaging or read-only source directories.

Changes

  • nunif/utils/home_dir.py: New module providing home_dir() that returns NUNIF_HOME (with ~ expansion) or falls back to source directory
  • iw3: Updated model downloads, GUI config, cache, and lock file paths
  • cliqa: Updated pretrained model paths
  • stlizer: Updated SuperPoint model path (also fixed incorrect path)
  • waifu2x: Updated model and cache paths
  • README.md: Added documentation for NUNIF_HOME

Usage

export NUNIF_HOME=~/.config/nunif
python -m iw3.download_models
python -m iw3.gui

Or inline:

NUNIF_HOME=~/.config/nunif python -m iw3.gui

If unset, behavior is unchanged from current version.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Add support for NUNIF_HOME environment variable Add support for NUNIF_HOME environment variable Nov 29, 2025
Copilot AI requested a review from nagadomi November 29, 2025 18:16
@nagadomi
Copy link
Owner

Operation mistake

@nagadomi nagadomi closed this Nov 29, 2025
@nagadomi nagadomi deleted the copilot/sub-pr-549 branch December 2, 2025 10:18
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.

2 participants