commit | 9c60e2b71eb3e39a4d8b02563436ca0a874af98a | [log] [tgz] |
---|---|---|
author | Joe Ethier <jethier@google.com> | Mon Jul 20 22:30:50 2020 -0700 |
committer | CQ Bot Account <commit-bot@chromium.org> | Tue Jul 21 15:29:07 2020 +0000 |
tree | 5c8f52f432f4b13a50fb0f856725a10303f003da | |
parent | 659d8e80885a4c2636565a3a1b83cff4a30996fd [diff] |
env_setup: Trust the user's env even less Change-Id: I1bb649d3b1aa8a7945c388d0db927b6a39a45045 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/14366 Reviewed-by: Rob Mohr <mohrr@google.com> Commit-Queue: Joe Ethier <jethier@google.com>
diff --git a/pw_env_setup/py/pw_env_setup/env_setup.py b/pw_env_setup/py/pw_env_setup/env_setup.py index fb98975..1eb7214 100755 --- a/pw_env_setup/py/pw_env_setup/env_setup.py +++ b/pw_env_setup/py/pw_env_setup/env_setup.py
@@ -58,9 +58,9 @@ '\n' 'Try updating to one of the standard Python implemetations:\n' ' https://www.python.org/downloads/') - sys.path.append( - os.path.abspath(os.path.join(filename, os.path.pardir, - os.path.pardir))) + sys.path = [ + os.path.abspath(os.path.join(filename, os.path.pardir, os.path.pardir)) + ] import pw_env_setup # pylint: disable=unused-import sys.path = old_sys_path