I'm trying to automate checking what the current power plan is and then return a response based on that. Here's what I have:
import subprocess
plan = subprocess.call("powercfg -getactivescheme")
if 'Balanced' in plan:
print Success
When I run this I get "TypeError: argument of type 'int' is not iterable"
Can someone please tell me what I'm doing wrong here?