PyStandardPaths provides methods for accessing standard paths.

This module contains functions to query standard locations on the local filesystem, for common tasks such as user-specific directories or system-wide configuration directories. The functions, location names, and the implementation of how paths are calculated, are based on Qt 5’s QStandardPaths class.

The current implementation matches that of Qt 5.4.1. This matching-Qt-version information can be obtained via standardpaths.QTVERSION (as a tuple of integers) and standardpaths.__qtversion__ (as a string).


PyStandardPaths can be installed with pip:

pip install pystandardpaths

Currently OS X, Windows, and Unix systems conforming to specifications are supported.

Implementations on OS X and Windows are based on ctypes, and dependencies vary between operating systems and Python versions.