Show current working directory, not a path to platformio.ini

This commit is contained in:
Ivan Kravets
2022-02-11 22:21:44 +02:00
parent 83fe00a0cf
commit 86bd0f7c37

View File

@@ -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: