()
| 1039 | termux_version = "Unknown" |
| 1040 | termux_api_version = "Unknown" |
| 1041 | termux_style_version = "Default" |
| 1042 | return termux_version, termux_api_version, termux_style_version |
| 1043 | |
| 1044 | def get_latest_dedsec_update(path): |
| 1045 | if path and os.path.isdir(path): |
| 1046 | stdout, _err = run_command_silent("git log -1 --format=%cd", cwd=path) |
| 1047 | return stdout if stdout else _("Not available") |
| 1048 | return _("DedSec directory not found") |
| 1049 | |
| 1050 | def find_dedsec(): |
| 1051 | """Locate DedSec without recursively scanning all of shared storage.""" |
| 1052 | candidates = [ |
| 1053 | os.path.join(HOME_DIR, "DedSec"), |
| 1054 | os.path.dirname(ENGLISH_BASE_PATH), |
| 1055 | os.path.dirname(os.path.dirname(os.path.realpath(__file__))), |
| 1056 | ] |
| 1057 | for candidate in candidates: |
| 1058 | candidate = os.path.realpath(candidate) |
| 1059 | if os.path.isdir(candidate) and ( |
no test coverage detected