I need to do a small program in python to edit a file with superuser permissions. I think it's pretty simple but I've never worked with file management in python.
I have a file that according to an entry or value of a variable, I would have to remove a comment one line (delete //), and comment another (add //). This file allows you to configure another small program.
Thank you very much for your help and comments.
Greetings,
daniel