forked from platypush/platypush
Added utils.get_default_downloads_dir
.
This commit is contained in:
parent
fd1f93799d
commit
f6cb1fa4a7
2 changed files with 7 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue