Warnings in extra scripts files

I tried to hide ip and auth information.
I succeeded, I have this data in the file env.py which is located under the same path as platformio.ini (all data works are replaced).
Is there any way to get rid of these warnings in the code and have hints related to writing the script for env variables etc.
And i’m using VSCODE
image

Duplicate of Post script Import('env') not working.

Since this is not a standalone script but relies on runtime-information from the SCons framework, I’m not sure whether that “error”, which isn’t one during runtime, can be eliminated.

Maybe @ivankravets knows about develeping the advanced scripting scripts with full SCons Intellesense in VSCode.

2 Likes

Thanks, this is the correct answer! PlatformIO extra scripts are not standalone or independent scripts.

1 Like