commit | 4769b27af1374335f141d9929433d3fa60615c17 | [log] [tgz] |
---|---|---|
author | Chad Norvell <chadnorvell@google.com> | Tue Sep 20 05:05:02 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Sep 20 05:05:02 2022 +0000 |
tree | 1f13331e95e4d94c32f7e4fea8d8b9985edaae5d | |
parent | aa2b5e3385c4c9ac5053920546a97b8ec561edf5 [diff] |
pw_ide: activate.py Provides a Python script that can be run independently of the Pigweed environment, and execute a given shell command *within* an activated Pigweed environment. Why do we need this? Editors aren't aware of the Pigweed environment, and neither are any subprocesses they spawn (unless you launch the editor *from* an activated environment, which you might do with vim but probably wouldn't do from VS Code). We wrap tasks that need access to the Pigweed environment in this script. Note that this script replicates much of the functionality already present in the pw_env_setup module. The difference is that this script can be run outside of the Pigweed environment and has no dependencies. In the long run, we should find a way to merge the two in a way that works for both use cases. Change-Id: Ic6741904c10d1a350f5ff318a52308fef87a006e Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/110259 Reviewed-by: Anthony DiGirolamo <tonymd@google.com> Commit-Queue: Chad Norvell <chadnorvell@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.