0
0
Fork 0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2025-01-22 17:52:57 +00:00
MarlinFirmware/buildroot/bin/opt_disable
2024-11-24 21:12:24 -06:00

21 lines
421 B
Python
Executable file

#!/usr/bin/env python
import sys, os, config
def main():
args = sys.argv[1:]
for name in args:
changed = False
for file in config.FILES:
if os.path.exists(file):
if config.enable(file, name, False):
changed = True
if not changed:
print(f"ERROR: Can't find {name}")
exit(1)
if __name__ == "__main__":
main()