From 86bd0f7c37998d0d1e27092c683b7491f62d2f53 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 11 Feb 2022 22:21:44 +0200 Subject: [PATCH] Show current working directory, not a path to platformio.ini --- platformio/project/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/project/config.py b/platformio/project/config.py index 7f2efb03..944d565c 100644 --- a/platformio/project/config.py +++ b/platformio/project/config.py @@ -347,7 +347,7 @@ class ProjectConfigBase(object): def validate(self, envs=None, silent=False): if not os.path.isfile(self.path): - raise exception.NotPlatformIOProjectError(self.path) + raise exception.NotPlatformIOProjectError(os.path.dirname(self.path)) # check envs known = set(self.envs()) if not known: