Fix a broken support for custom configuration file for pio debug command // Resolve #3922
This commit is contained in:
@@ -146,9 +146,7 @@ class DebugConfigBase: # pylint: disable=too-many-instance-attributes
|
||||
)
|
||||
|
||||
def _load_build_data(self):
|
||||
data = load_project_ide_data(
|
||||
os.path.dirname(self.project_config.path), self.env_name, cache=True
|
||||
)
|
||||
data = load_project_ide_data(os.getcwd(), self.env_name, cache=True)
|
||||
if data:
|
||||
return data
|
||||
raise DebugInvalidOptionsError("Could not load a build configuration")
|
||||
|
||||
Reference in New Issue
Block a user