1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-12-02 08:09:36 +00:00
MarlinFirmware/buildroot/bin/opt_enable

22 lines
413 B
Plaintext
Raw Normal View History

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