Resolved a regression issue with Memory Inspection in PIO Home

This commit is contained in:
Ivan Kravets committed 2023-08-14 19:02:58 +03:00
1 parent c946613019
commit a0f8def616
2 files changed
+4 -3

No files matched your search

+2 -2
View File
@@ -42,9 +42,9 @@ class ProjectRPC(BaseRPCHandler):
project_dir = init_kwargs["path"]
init_kwargs["path"] = os.path.join(init_kwargs["path"], "platformio.ini")
elif os.path.isfile(init_kwargs["path"]):
project_dir = get_project_dir()
else:
project_dir = os.path.dirname(init_kwargs["path"])
else:
project_dir = get_project_dir()
with fs.cd(project_dir):
return getattr(ProjectConfig(**init_kwargs), method)(*args)