Fixed an issue with calling an extra script located outside a project // Resolve #4220

This commit is contained in:
Ivan Kravets
2022-04-10 19:09:29 +03:00
parent fe6f51369e
commit 0501d55c8f
2 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ PlatformIO Core 5
- Show project dependency licenses when building in the verbose mode
- Fixed an issue when `LDF <https://docs.platformio.org/en/latest/librarymanager/ldf.html>`__ ignores the project `lib_deps <https://docs.platformio.org/en/latest/projectconf/section_env_library.html#lib-deps>`__ while resolving library dependencies (`issue #3598 <https://github.com/platformio/platformio-core/issues/3598>`_)
- Fixed an issue with calling an extra script located outside a project (`issue #4220 <https://github.com/platformio/platformio-core/issues/4220>`_)
* **Integration**

View File

@ -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(_):