Timeline for answer to Python Packaging: user specified file path by wim
Current License: CC BY-SA 4.0
Post Revisions
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 1, 2021 at 19:23 | comment | added | wim |
You just load configuration from an file at ~/.config/myapp.conf or wherever. Document the default config file path and provide a way to override this location (e.g. another env var MYAPP_CONF_FILE). The existence of a config file at all should generally be optional.
|
|
| Jun 1, 2021 at 18:30 | comment | added | Stalpotaten | True, it is runtime configuration. The package will mainly be loaded as a module — is there still a way to have one-time command-line configuration command to specify the paths? A configuration file sounds appealing to me. How is that done? | |
| Jun 1, 2021 at 18:19 | history | answered | wim | CC BY-SA 4.0 |