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

Function read_device_properties

device.py:51–55  ·  view source on GitHub ↗
(device_id)

Source from the content-addressed store, hash-verified

49 return config
50
51def read_device_properties(device_id):
52 device_file_path = get_properties_file_path(device_id)
53 if not os.path.isfile(device_file_path):
54 exit_with_error(f"Device file not found: {device_file_path}")
55 return read_properties_file(device_file_path)
56
57def has_group(properties: ConfigParser, group: str):
58 return group in properties.sections()

Callers 1

mainFunction · 0.70

Calls 3

get_properties_file_pathFunction · 0.85
exit_with_errorFunction · 0.70
read_properties_fileFunction · 0.70

Tested by

no test coverage detected