diff options
Diffstat (limited to 'src/util.py')
-rw-r--r-- | src/util.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util.py b/src/util.py new file mode 100644 index 0000000..4b82c77 --- /dev/null +++ b/src/util.py @@ -0,0 +1,9 @@ +import os +from kivy.utils import platform + +def get_default_download_dir() -> str: + if platform == "android": + return "/sdcard/Download" + else: + from pathlib import Path + return os.path.join(str(Path.home()), "Downloads") |