Skip to content

Commit

Permalink
Fix cmd shell
Browse files Browse the repository at this point in the history
  • Loading branch information
mottosso committed Jul 24, 2019
1 parent 121ff18 commit f841bca
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/rezplugins/shell/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,11 @@ def gen_expected_regex(parts):
"(.*)"
])

p = popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, shell=True)
p = popen(cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True,
shell=True)
out_, _ = p.communicate()
out_ = out_.strip()

Expand All @@ -174,8 +177,11 @@ def gen_expected_regex(parts):
"(.*)"
])

p = popen(cmd, stdout=subprocess.PIPE,
stderr=subprocess.PIPE, shell=True)
p = popen(cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
universal_newlines=True,
shell=True)
out_, _ = p.communicate()
out_ = out_.strip()

Expand Down

0 comments on commit f841bca

Please sign in to comment.