MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / should_update_tool_json

Function should_update_tool_json

Tests/SdkIntegration/tactility.py:155–165  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

153 return os.path.isdir(sdk_dir)
154
155def should_update_tool_json():
156 global ttbuild_cdn
157 json_filepath = os.path.join(ttbuild_path, "tool.json")
158 if os.path.exists(json_filepath):
159 json_modification_time = os.path.getmtime(json_filepath)
160 now = time.time()
161 global ttbuild_sdk_json_validity
162 minimum_seconds_difference = ttbuild_sdk_json_validity
163 return (now - json_modification_time) > minimum_seconds_difference
164 else:
165 return True
166
167def update_tool_json():
168 global ttbuild_cdn, ttbuild_path

Callers 1

tactility.pyFile · 0.85

Calls 2

joinMethod · 0.80
existsMethod · 0.80

Tested by

no test coverage detected