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
Built Distribution
Hashes for userpaths-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a2840b0afaafdf2b301f1a2cf98248100f11a685f964b7a39640f01d367b641 |
|
MD5 | 14b75fc78270a1a9f190a67e5b8cf641 |
|
BLAKE2b-256 | b9ee8396a4999215814ec62695a147c1a29326e66aa07528901d1c55e371b1bd |