mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-02 11:24:27 +02:00
Show current working directory, not a path to platformio.ini
This commit is contained in:
@@ -347,7 +347,7 @@ class ProjectConfigBase(object):
|
|||||||
|
|
||||||
def validate(self, envs=None, silent=False):
|
def validate(self, envs=None, silent=False):
|
||||||
if not os.path.isfile(self.path):
|
if not os.path.isfile(self.path):
|
||||||
raise exception.NotPlatformIOProjectError(self.path)
|
raise exception.NotPlatformIOProjectError(os.path.dirname(self.path))
|
||||||
# check envs
|
# check envs
|
||||||
known = set(self.envs())
|
known = set(self.envs())
|
||||||
if not known:
|
if not known:
|
||||||
|
Reference in New Issue
Block a user