get_settings_path Function

Defined in pyglet.resource


Get a directory to save user preferences.

Different platforms have different conventions for where to save user preferences, saved games, and settings. This function implements those conventions. Note that the returned path may not exist: applications should use os.makedirs to construct it if desired.

On Linux, a directory name in the user’s configuration directory is returned (usually under ~/.config).

On Windows (including under Cygwin) the name directory in the user’s Application Settings directory is returned.

On Mac OS X the name directory under ~/Library/Application Support is returned.

Parameters:name (str) – The name of the application.
Return type:str

Previous topic

get_script_home Function

Next topic

get_texture_bins Function