godly-devotion / charge-limiter

macOS app to set battery charge limit for Intel MacBooks
GNU General Public License v3.0
649 stars 28 forks source link

Update deprecating python script #26

Closed NSKernel closed 3 years ago

NSKernel commented 3 years ago

Hi, I found that charge-limiter is using python 2 to translate decimal to hex. You might want to update the python "to-hex" command to python 3 since Apple is deprecating python 2. I tried on my own machine and change it to python3 -c 'print("%02X" % ${value})' works. I am not making it a pull request because there are binaries inside and can have some code signing issues.

godly-devotion commented 3 years ago

Sounds good! Thanks for the heads up.