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] http://ginstrom.com/code/winpaths.html

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 Python 2 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