Skip to content

Commit

Permalink
Merge pull request #164 from harvardinformatics/master
Browse files Browse the repository at this point in the history
Convert the proc output from bytes to strings
  • Loading branch information
andrewjpage committed Apr 12, 2016
2 parents fe094b0 + 74de8b9 commit 88c91d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/gubbins/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def does_file_exist(alignment_filename, file_type_msg):
def choose_executable(list_of_executables):
flags = []
if os.path.exists('/proc/cpuinfo'):
output = subprocess.Popen('grep flags /proc/cpuinfo', stdout = subprocess.PIPE, shell=True).communicate()[0]
output = subprocess.Popen('grep flags /proc/cpuinfo', stdout = subprocess.PIPE, shell=True).communicate()[0].decode("utf-8")
flags = output.split()

for executable in list_of_executables:
Expand Down

0 comments on commit 88c91d2

Please sign in to comment.