Permalink
Browse files

Use absolute path for system_profiler

  • Loading branch information...
joneskoo committed Jan 15, 2012
1 parent 0c16b6f commit e421596724e75e86001b2e28cd81dc7e55e0bbf7
Showing with 1 addition and 1 deletion.
  1. +1 −1 batteryinfo.py
View
@@ -20,7 +20,7 @@
def getdata():
with NamedTemporaryFile() as f:
- call(['system_profiler', '-xml', 'SPPowerDataType'], stdout=f)
+ call(['/usr/sbin/system_profiler', '-xml', 'SPPowerDataType'], stdout=f)
f.seek(0)
p = plistlib.readPlist(f)
d = p[0]['_items'][0]

0 comments on commit e421596

Please sign in to comment.