Skip to content

Commit

Permalink
Add information how to avoid extra script running when IDE fetches me…
Browse files Browse the repository at this point in the history
…tadata
  • Loading branch information
ivankravets committed Apr 16, 2021
1 parent 81ac271 commit 5f10c6a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions projectconf/advanced_scripting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,14 @@ The ``extra_script.py`` file is located in the same directory as ``platformio.in
# print(env.Dump())
#
#
# (Optional) Do not run extra script when IDE fetches C/C++ project metadata
#
from SCons.Script import COMMAND_LINE_TARGETS
if "idedata" in COMMAND_LINE_TARGETS:
env.Exit(0)
#
# Change build flags in runtime
#
Expand Down

0 comments on commit 5f10c6a

Please sign in to comment.