You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
492 B

5 years ago
  1. import os, subprocess
  2. from pathlib import Path
  3. from clishared import cli_split_rom, cli_write_rom
  4. print("ThinkPad X230 Bios Writer v1")
  5. project_name = input("Where is your project folder? ")
  6. project_path = Path(project_name).resolve()
  7. patched_path = project_path / "patched"
  8. clean_path = project_path / "clean"
  9. cli_split_rom(patched_path)
  10. cli_write_rom("bottom", patched_path)
  11. # Bell to remind user to move clip
  12. print("\a", end="")
  13. cli_write_rom("top", patched_path)
  14. print("All done.")