Added `utils.get_default_downloads_dir`.

This commit is contained in:
Fabio Manganiello 2023-11-03 18:06:09 +01:00
parent fd1f93799d
commit f6cb1fa4a7
2 changed files with 7 additions and 3 deletions

View File

@ -723,7 +723,6 @@ backend.http:
#
# tts:
# # The media plugin that should be used to play the audio response
# media_plugin: media.vlc
# # The default language of the voice
# language: en-gb
###
@ -740,8 +739,6 @@ backend.http:
# # account.
#
# tts.google:
# # The media plugin that should be used to play the audio response
# media_plugin: media.vlc
# # The default language of the voice
# language: en-US
# # The gender of the voice (MALE or FEMALE)

View File

@ -773,4 +773,11 @@ def is_debug_enabled() -> bool:
return (Config.get('logging') or {}).get('level') == logging.DEBUG
def get_default_downloads_dir() -> str:
"""
:return: The default downloads directory.
"""
return os.path.join(os.path.expanduser('~'), 'Downloads')
# vim:sw=4:ts=4:et: