mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-31 10:37:13 +02:00
More clarifications about NotPlatformProject
This commit is contained in:
@ -63,7 +63,7 @@ class FDSHASumMismatch(PlatformioException):
|
|||||||
|
|
||||||
class NotPlatformProject(PlatformioException):
|
class NotPlatformProject(PlatformioException):
|
||||||
|
|
||||||
MESSAGE = "Not a PlatformIO project. Use `platformio init` command"
|
MESSAGE = "Not a PlatformIO project (%s). Use `platformio init` command"
|
||||||
|
|
||||||
|
|
||||||
class UndefinedEnvPlatform(PlatformioException):
|
class UndefinedEnvPlatform(PlatformioException):
|
||||||
|
@ -79,7 +79,7 @@ def get_pioenvs_dir():
|
|||||||
def get_project_config():
|
def get_project_config():
|
||||||
path = join(get_project_dir(), "platformio.ini")
|
path = join(get_project_dir(), "platformio.ini")
|
||||||
if not isfile(path):
|
if not isfile(path):
|
||||||
raise NotPlatformProject()
|
raise NotPlatformProject(get_project_dir())
|
||||||
cp = ConfigParser()
|
cp = ConfigParser()
|
||||||
cp.read(path)
|
cp.read(path)
|
||||||
return cp
|
return cp
|
||||||
|
Reference in New Issue
Block a user