mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Disable parsing of extra configs for PIO Home Project RPC load/dump methods
This commit is contained in:
@ -45,11 +45,11 @@ class ProjectRPC(object):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def config_load(path):
|
def config_load(path):
|
||||||
return ProjectConfig(path).as_tuple()
|
return ProjectConfig(path, parse_extra=False).as_tuple()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def config_dump(path, data):
|
def config_dump(path, data):
|
||||||
config = ProjectConfig(path)
|
config = ProjectConfig(path, parse_extra=False)
|
||||||
config.update(data, clear=True)
|
config.update(data, clear=True)
|
||||||
return config.save()
|
return config.save()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user