diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-04-05 00:44:59 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2017-04-05 00:46:12 +0300 |
commit | 546ef301a12ccd6015137964637983432c64d11f (patch) | |
tree | 49fb718e515ca042588c759a2407cb7b4b2d900b | |
parent | a9e6f08adb6dbe84ee59e9545895aa9dfc5ade17 (diff) | |
download | micropython-546ef301a12ccd6015137964637983432c64d11f.tar.gz micropython-546ef301a12ccd6015137964637983432c64d11f.zip |
tools/pyboard: execpty: Use shell=False to workaround some curdir issues.
Without this, Zephyr's port "make test" doesn't work.
-rwxr-xr-x | tools/pyboard.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pyboard.py b/tools/pyboard.py index 131634c906..b7babdc305 100755 --- a/tools/pyboard.py +++ b/tools/pyboard.py @@ -170,7 +170,7 @@ class ProcessPtyToTerminal: import subprocess import re import serial - self.subp = subprocess.Popen(cmd.split(), bufsize=0, shell=True, preexec_fn=os.setsid, + self.subp = subprocess.Popen(cmd.split(), bufsize=0, shell=False, preexec_fn=os.setsid, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) pty_line = self.subp.stderr.readline().decode("utf-8") m = re.search(r"/dev/pts/[0-9]+", pty_line) |