Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Lenses are hard for people to write and error handling is poor though, so it can be very frustrating. The lineinfile method does work fine for simple files, and there's also an INI file module.

In most cases, we recommend using the 'template' module for this reason, in cases where you know what you'd like to put down for the file contents.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: