Skip to main content

Returns the directory where the cache is located. This is different for each os.

Project description

env-paths

This package is a modified sindresorhus/env-paths from nodejs for python.

Returns the directory where the cache is located. This is different for each os.

Install

$ pip install env-paths

Usage

from env_paths import env_paths

paths = env_paths('MyApp')
paths.data
# => '/home/atu4403/.local/share/MyApp-python'

paths.config
# => '/home/atu4403/.config/MyApp-python'

Related

License

MIT © atu4403

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

env_paths-1.0.1.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

env_paths-1.0.1-py3-none-any.whl (2.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page