Skip to content

Commit

Permalink
fix a python3 postinstall glitch
Browse files Browse the repository at this point in the history
I thought this post install bug was fixed long ago?
  • Loading branch information
ctismer committed Oct 18, 2013
1 parent 6f49a93 commit de53ee6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyside_postinstall.py
Expand Up @@ -78,6 +78,9 @@ def back_tick(cmd, ret_err=False):
""" """
proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True) proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True)
out, err = proc.communicate() out, err = proc.communicate()
if not isinstance(out, str):
# python 3
out = out.decode()
retcode = proc.returncode retcode = proc.returncode
if retcode is None: if retcode is None:
proc.terminate() proc.terminate()
Expand Down

0 comments on commit de53ee6

Please sign in to comment.