From f6cb1fa4a77e1f06a546a4e732874d22c752339b Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 3 Nov 2023 18:06:09 +0100 Subject: [PATCH] Added `utils.get_default_downloads_dir`. --- platypush/config/config.yaml | 3 --- platypush/utils/__init__.py | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/platypush/config/config.yaml b/platypush/config/config.yaml index 434220eb3c..335698bf86 100644 --- a/platypush/config/config.yaml +++ b/platypush/config/config.yaml @@ -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) diff --git a/platypush/utils/__init__.py b/platypush/utils/__init__.py index 69e9e5cc6c..eaeb405735 100644 --- a/platypush/utils/__init__.py +++ b/platypush/utils/__init__.py @@ -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: