The XDG specs define a more appropriate location for compiled MIBs than the current default of ~/.pysnmp/mibs/:
$XDG_CACHE_HOME defines the base directory relative to which user specific non-essential data files should be stored. If $XDG_CACHE_HOME is either not set or empty, a default equal to $HOME/.cache should be used.
On Linux this usually just means that
~/.pysnmp/mibs/
becomes
~/.cache/pysnmp/mibs/
Many other tools like pip, pre-commit or black already use that location.
The XDG specs define a more appropriate location for compiled MIBs than the current default of
~/.pysnmp/mibs/
:On Linux this usually just means that
becomes
Many other tools like
pip
,pre-commit
orblack
already use that location.For Python the appdirs library handles the default and Mac OS X/Windows compatibility.
I'm willing to try my hand at a PR if you tell me whether this is worthwhile.