I got a third-party python file called download_fs.py
, which adds a custom target to PlatformIO when included as an extra_scripts
. It works very well.
The custom target is called downloadfs
, and contains a single action, called command_download_fs
.
Now I want to create my own custom target, which would 1. do some stuff, and then 2. call command_download_fs
.
What I did:
- I successfully created my own custom target and included it as an
extra_scripts
- In my custom target, I loaded
download_fs.py
like this:env.SConscript("../../../xxxx/xxxx/download_fs.py", exports="env")
- I checked that
downloadfs
has been succesdfully loaded by runningenv.DumpTargets()
But I’m blocked at this point: how do I execute command_download_fs
on the newly loaded downloadfs
custom target?