MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / save_project

Function save_project

Scripts/Settings.py:1041–1056  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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
1044def 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
1050def 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 (

Callers 1

mainFunction · 0.70

Calls 7

printFunction · 0.85
run_command_silentFunction · 0.70
_Function · 0.70
_remove_path_if_existsFunction · 0.70

Tested by

no test coverage detected