We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to use the dynamic build flags as described here: docs.platformio.org/en/latest/projectconf/section_env_build.html#dynamic-build-flags
[my_environment] build_flags = ${esp8266_4M.build_flags} -D PLUGIN_SET_MFD -D USE_CUSTOM_H -D FEATURE_ADC_VCC=true !python git_rev_macro.py
It does not seem to insert the output of the python
running the python file directly shows the correct results.
this is the content of the python file import subprocess
#revision = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip() revision = subprocess.check_output(["git", "describe"]).strip() print "-D BUILD_GIT=%s" % revision
I am running the platformIO under VSCode in Windows
Please help getting the dynamic build flag working
The text was updated successfully, but these errors were encountered:
00b173f
Thanks for the report!
pio upgrade --dev
build_flags = ${esp8266_4M.build_flags} -D PLUGIN_SET_MFD -D USE_CUSTOM_H -D FEATURE_ADC_VCC=true !python git_rev_macro.py
It should work now.
Sorry, something went wrong.
No branches or pull requests
I am trying to use the dynamic build flags as described here: docs.platformio.org/en/latest/projectconf/section_env_build.html#dynamic-build-flags
[my_environment]
build_flags = ${esp8266_4M.build_flags} -D PLUGIN_SET_MFD -D USE_CUSTOM_H -D FEATURE_ADC_VCC=true !python git_rev_macro.py
It does not seem to insert the output of the python
running the python file directly shows the correct results.
this is the content of the python file
import subprocess
#revision = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip()
revision = subprocess.check_output(["git", "describe"]).strip()
print "-D BUILD_GIT=%s" % revision
I am running the platformIO under VSCode in Windows
Please help getting the dynamic build flag working
The text was updated successfully, but these errors were encountered: