commit | 97a89da06002b91bd8d3adeb7f46d90fbc20971f | [log] [tgz] |
---|---|---|
author | Armando Montanez <amontanez@google.com> | Thu Feb 25 16:02:54 2021 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Feb 26 00:32:27 2021 +0000 |
tree | 83a920c633c7b5e2656ce26d2d0db8ac68b0f430 | |
parent | 30c974977f03947fb23807f10d56578828356695 [diff] |
pw_env_setup: check virtualenv gn target correctly Check was against the private variable rather than the argument. Bug: 325 Change-Id: Ib360801b3443f59e82e7340ded43d51c2a5c9289 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/34260 Reviewed-by: Rob Mohr <mohrr@google.com> Commit-Queue: Armando Montanez <amontanez@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 6e17bae..a05663b 100755 --- a/pw_env_setup/py/pw_env_setup/env_setup.py +++ b/pw_env_setup/py/pw_env_setup/env_setup.py
@@ -219,7 +219,7 @@ self._cipd_package_file.append( os.path.join(setup_root, 'cipd_setup', 'luci.json')) # Only set if no other GN target is provided. - if not self._virtualenv_gn_targets: + if not virtualenv_gn_target: self._virtualenv_gn_targets.append( virtualenv_setup.GnTarget( '{}#pw_env_setup:python.install'.format(pw_root)))