@libreware · Post #1130 · 17.05.2023 г., 21:09
Reminder : a basic tutorial on How to De-Google LineageOS https://invidious.snopyta.org/watch?v=E1U5qoiR1fM&local=true #Android#deGoogle#LineageOS #Privacy
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #214 · 12 фев.
Как правильно проверить атрибуты доступа файла? То есть доступна ли запись в файл или является ли он исполняемым? Для этого в Python есть функция os.access() Проверять так: os.access(path, flag) Функция вернёт bool в зависимости от наличия указанного флага. Всего есть 4 флага проверки: os.F_OK - наличие файла на диске os.R_OK - доступ на чтение os.W_OK - доступ на запись os.X_OK - доступ на исполнение Например, вместо try-except лучше делать так (пример из документации): if os.access("myfile", os.R_OK): with open("myfile") as fp: return fp.read() #basic#libs
Пребарај: #degoogle
@libreware · Post #1130 · 17.05.2023 г., 21:09
Reminder : a basic tutorial on How to De-Google LineageOS https://invidious.snopyta.org/watch?v=E1U5qoiR1fM&local=true #Android#deGoogle#LineageOS #Privacy
@libreware · Post #885 · 12.01.2021 г., 22:56
Plexus https://plexus.techlore.tech Remove the fear of Android app compatibility on de-Googled devices Plexus is a crowdsourced project that relies on the community. You can contribute here: https://github.com/techlore-official/plexus #plexus#alternatives#degoogle#gapps