From c0bd1ca2348d568b7f34081b09bc4e53baaff749 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Thu, 9 Nov 2023 21:30:14 -0700 Subject: App somewhat working on android --- src/util.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/util.py (limited to 'src/util.py') 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") -- cgit v1.2.3