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

Function read_file

device.py:39–42  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

37 return os.path.join(DEVICES_DIRECTORY, device_id, "device.properties")
38
39def read_file(path: str):
40 with open(path, "r") as file:
41 result = file.read()
42 return result
43
44def read_properties_file(path):
45 config = configparser.RawConfigParser()

Callers 1

write_defaultsFunction · 0.70

Calls 2

openFunction · 0.85
readMethod · 0.45

Tested by

no test coverage detected