diff --git a/HISTORY.rst b/HISTORY.rst index 3e4abf98..866b07c0 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -47,6 +47,7 @@ PlatformIO Core 5 - Show project dependency licenses when building in the verbose mode - Fixed an issue when `LDF `__ ignores the project `lib_deps `__ while resolving library dependencies (`issue #3598 `_) + - Fixed an issue with calling an extra script located outside a project (`issue #4220 `_) * **Integration** diff --git a/platformio/builder/tools/piomisc.py b/platformio/builder/tools/piomisc.py index af703185..ae3a22ba 100644 --- a/platformio/builder/tools/piomisc.py +++ b/platformio/builder/tools/piomisc.py @@ -376,7 +376,7 @@ def GetExtraScripts(env, scope): if not items: return items with fs.cd(env.subst("$PROJECT_DIR")): - return [os.path.abspath(item) for item in items] + return [os.path.abspath(env.subst(item)) for item in items] def exists(_):