Files
sh4un 3cf9ea5d22 Refactor test and configuration files for improved readability and consistency
- Updated test_protocol.py to maintain consistent formatting and structure.
- Adjusted tmp_no_default.ini to use consistent line endings.
- Reformatted tmp_run_load.py and tmp_test_config.py for improved readability.
2026-04-17 14:36:27 -04:00

9 lines
234 B
Python

from ammb import config_handler
path = "tmp_no_default.ini"
with open(path, "w") as f:
f.write("[serial]\nSERIAL_PORT=/dev/ttyS1\n")
print("Using file:", path)
cfg = config_handler.load_config(path)
print("Result:", cfg)