diff --git a/src/rez/system.py b/src/rez/system.py index 25780c1e7..8486a71af 100644 --- a/src/rez/system.py +++ b/src/rez/system.py @@ -86,7 +86,7 @@ def shell(self): # print an error message: "process ID out of range". try: args = ['ps', '-o', 'args=', '-p', str(parent_pid)] - proc = sp.Popen(args, stdout=sp.PIPE) + proc = sp.Popen(args, stdout=sp.PIPE, text=True) output = proc.communicate()[0] shell = os.path.basename(output.strip().split()[0]).replace('-', '') except Exception: