Support for Termux subsystem#63
Support for Termux subsystem#63gaborbernat merged 6 commits intotox-dev:mainfrom YariKartoshe4ka:android-oserror-fix
Conversation
src/platformdirs/android.py
Outdated
| def user_data_dir(self) -> str: | ||
| """:return: data directory tied to the user, e.g. ``/data/user/<userid>/<packagename>/files/<AppName>``""" | ||
| return self._append_app_name_and_version(_android_folder(), "files") | ||
| return self._append_app_name_and_version(_android_folder() or "", "files") |
There was a problem hiding this comment.
Do we need the or here? I've understood that when this is called it's guaranteed that it will be not None, not?
There was a problem hiding this comment.
tox -e type swears
There was a problem hiding this comment.
mypy knows less than we, but probably a typing.cast for mypy likely is better choice than or 👍
There was a problem hiding this comment.
Yep, i think so too
BDhackers009
left a comment
There was a problem hiding this comment.
Thanks Sir when I put these 2 files manually in _vendor/platformdirs/ folder it fixes my problem😊
|
Thanks gentleman, this works for me. |
|
pls can you tell me which two files are needed to be added to solve this problem.Iam facing this problem in my ubuntu jammy installed in termux using proot-distro. |
|
thanks,it works for my termux ! |

Fix of #62
Platformdirs on Termux under Arch Linux subsystem:
Platformdirs on Termux: