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.

18 lines
555 B

5 years ago
  1. import os, subprocess
  2. from pathlib import Path
  3. from clishared import cli_patch_rom, cli_choose_patches
  4. print("ThinkPad X230 Bios Patcher v1")
  5. project_name = input("Where is your project folder? ")
  6. project_name = project_name.replace("\\", "") # Remove backslashes so I can drag and drop folders
  7. project_path = Path(project_name).resolve()
  8. patched_path = project_path / "patched"
  9. clean_path = project_path / "clean"
  10. if not patched_path.exists():
  11. patched_path.mkdir()
  12. patches = cli_choose_patches()
  13. cli_patch_rom(patches, clean_path, patched_path)