()
| 27 | sys.exit(1) |
| 28 | |
| 29 | def print_help(): |
| 30 | print("Usage: python device.py [device_id] [arguments]\n\n") |
| 31 | print(f"\t[device_id] the device identifier (folder name in {DEVICES_DIRECTORY}/)") |
| 32 | print("\n") |
| 33 | print("Optional arguments:\n") |
| 34 | print("\t--dev developer options (limit to 4MB partition table)") |
| 35 | |
| 36 | def get_properties_file_path(device_id: str): |
| 37 | return os.path.join(DEVICES_DIRECTORY, device_id, "device.properties") |