Skip to content

Commit

Permalink
fixed a bug in extending the PATH env-variable that caused a failure …
Browse files Browse the repository at this point in the history
…in capturing the stdout
  • Loading branch information
Qwlouse committed Dec 21, 2016
1 parent 30418a3 commit 918b750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sacred/host_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _cpu():
if platform.system() == "Windows":
return platform.processor().strip()
elif platform.system() == "Darwin":
os.environ['PATH'] = os.path.join(os.environ['PATH'], '/usr/sbin')
os.environ['PATH'] += ':/usr/sbin'
command = ["sysctl", "-n", "machdep.cpu.brand_string"]
return subprocess.check_output(command).decode().strip()
elif platform.system() == "Linux":
Expand Down

0 comments on commit 918b750

Please sign in to comment.