opt_disable 420 B

123456789101112131415161718192021
  1. #!/usr/bin/env python
  2. import sys, os,config
  3. def main():
  4. args = sys.argv[1:]
  5. for name in args:
  6. changed = False
  7. for file in config.FILES:
  8. if os.path.exists(file):
  9. if config.enable(file, name, False):
  10. changed = True
  11. if not changed:
  12. print(f"ERROR: Can't find {name}")
  13. exit(1)
  14. if __name__ == "__main__":
  15. main()