Create SysCmds common class, and refactor Python codebase#697
Create SysCmds common class, and refactor Python codebase#697
Conversation
…group as argument.
… Pi3B+, this leads to ~1.5k more memory being used by the python3 process.
|
@rdmark These look like nice changes wrt. overall quality improvements. I have nothing specific to add to the code comments specifically. It's probably worth to give this branch a practical test run once you consider it complete. |
|
@bzeiss Thanks for having a look! Right now only the get_ip_and_host() class method is shared by two clients (web and oled) but hopefully other SysCmds methods can be shared and expanded upon, perhaps as your control board interface matures. I wanted to refactor logging in line with #530 but couldn't get it to work as I liked after an hour of trying, so shelving it for another day and another PR. This is now ready for formal review/sign-off. :) |
|
@rdmark Finally had a chance to give this a test run. This is what I got which I find a little odd. I had to delete the venv in web in order to make it work. I'm starting to suspect that it really is a good idea to clean up the venv's after a new easyinstall.sh call for all python projects. Other than that, I didn't see anything broke. Thanks again for the hostname in the banner :-) |
|
@bzeiss Thanks for testing! Yes, venv is very fragile. Doing some cleanup in easyinstall isn't a bad idea. I wonder where the |
Uh oh!
There was an error while loading. Please reload this page.