project_open
Open a QGIS project file (.qgs/.qgz) to replace the current project, with an option to force discard unsaved changes.
Instructions
Open a .qgs/.qgz project file, replacing the currently open project.
This discards the in-memory project state. If the current project has
unsaved changes, the call fails with a ProjectDirty error unless force
is set - confirm with the user before forcing a discard. Returns the same
shape as project_info.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| force | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||