aboutsummaryrefslogtreecommitdiffstats
path: root/pyside_postinstall.py
diff options
context:
space:
mode:
authorChristian Tismer <tismer@stackless.com>2013-10-18 20:09:20 +0200
committerChristian Tismer <tismer@stackless.com>2013-10-18 20:09:20 +0200
commitde53ee6a3a3d345fd4b1e7f92428ca8e521d4de7 (patch)
tree184d51e2909298c9431e53e5c019c5f3badc8879 /pyside_postinstall.py
parent6f49a93f59b930be858cd1cc9174de74f38ff393 (diff)
fix a python3 postinstall glitch
I thought this post install bug was fixed long ago?
Diffstat (limited to 'pyside_postinstall.py')
-rw-r--r--pyside_postinstall.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pyside_postinstall.py b/pyside_postinstall.py
index ec8146aba..a10aef789 100644
--- a/pyside_postinstall.py
+++ b/pyside_postinstall.py
@@ -78,6 +78,9 @@ def back_tick(cmd, ret_err=False):
"""
proc = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True)
out, err = proc.communicate()
+ if not isinstance(out, str):
+ # python 3
+ out = out.decode()
retcode = proc.returncode
if retcode is None:
proc.terminate()