forked from platformio/platformio-core
Resolved a regression issue with Memory Inspection in PIO Home
This commit is contained in:
1 parent
c946613019
commit
a0f8def616
2 files changed
+4
-3
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user