rockymeza / wifi

[unmaintained] WiFi tools for linux

Home Page:http://pypi.python.org/pypi/wifi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interfaces file keeps growing

Grandpa-G opened this issue · 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.

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.