Skip to main content

Cross-platform access to a user's special folders

Project description

The userpaths module provides cross-platform access to a user’s special folders (or directories) like My Documents, Desktop, and Application Data.

On Windows, it uses SHGetFolderPath() from shell32.dll. On other platforms, it provides the closest standard or generally-used de facto equivalent.

The API is based on Ryan Ginstrom’s winpaths [1], an existing module that provides a Windows-specific solution to special folder access. However, userpaths has a different overall focus (cross-platform access to a subset of user folders), and is not intended as an exact drop-in replacement.

A quick usage example:

# Get the user’s My Documents folder import userpaths my_docs = userpaths.get_my_documents()

References: [1]

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

userpaths-0.1.0.tar.gz (3.4 kB view hashes)

Uploaded source

Built Distribution

userpaths-0.1.0-py2.py3-none-any.whl (6.3 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page