gabfv / logitech-g-hub-settings-extractor

This is a small python tool to extract the json file stored inside the "settings.db" file of the Logitech G Hub app. This allows you to update the json and then replace the file blob inside the db with the new json.
MIT License
73 stars 10 forks source link

The file that we read or write should be closed #1

Closed skrabbe001 closed 2 years ago

skrabbe001 commented 2 years ago

Add file.close() after file.read() and file.write(data)

gabfv commented 2 years ago

Not sure I need to file.close() when using a with statement : https://www.python.org/dev/peps/pep-0343/