The battery on my laptop is "BAT1" and there is no "BAT0". So this check will fail:
|
root = os.path.join(POWER_SUPPLY_PATH, "BAT0") |
|
if not os.path.exists(root): |
It's possible this is an oddity of just my laptop (it doesn't have a second battery bay or anything exotic), but I wanted to point it out in case perhaps this is failing for others.
The battery on my laptop is "BAT1" and there is no "BAT0". So this check will fail:
psutil/psutil/_pslinux.py
Lines 1220 to 1221 in f0094db
It's possible this is an oddity of just my laptop (it doesn't have a second battery bay or anything exotic), but I wanted to point it out in case perhaps this is failing for others.