wifi icon indicating copy to clipboard operation
wifi copied to clipboard

interfaces file keeps growing

Open Grandpa-G opened this issue 8 years ago • 1 comments

I am using the wifi python classes. If I add and delete schemes several times, the interface file keeps getting longer. It looks like when a scheme is deleted, empty lines are left in its place. Then, when a new scheme is added, it is appended to the file, after the empty lines. All works correctly, but just is probably not the intended action.

Grandpa-G avatar May 10 '16 08:05 Grandpa-G

oh weird. that's kind of funny. I was hoping eventually to get rid of the dependence on /etc/network/interfaces and maybe we could just serialize to JSON?

I'm not super worried about this, but it is kind of annoying. Here's the delete function: https://github.com/rockymeza/wifi/blob/master/wifi/scheme.py#L139-L155 If you wanted to write a pull request, that would be really great.

rockymeza avatar May 11 '16 15:05 rockymeza