3 ms·
> os.path.expanduser("~/.cache/ssh2_list") Please, consider $XDG_CACHE_HOME. Not everyone likes the default directory layout. I think, ugly-looking but reason
by drdaeman 11y ago
> os.path.expanduser("~/.cache/ssh2_list")
Please, consider $XDG_CACHE_HOME. Not everyone likes the default directory layout.
I think, ugly-looking but reasonably portable version would look like
os.path.join(os.environ.get("XDG_CACHE_HOME", os.path.join(os.path.expanduser("~"), ".cache")), "ssh2_list")
- soheil 11y agoTook care of this, thanks for the tip.