diff --git a/ribasim_qgis/scripts/install_ribasim_qgis.py b/ribasim_qgis/scripts/install_ribasim_qgis.py index e2bb9dbc4..71755680a 100644 --- a/ribasim_qgis/scripts/install_ribasim_qgis.py +++ b/ribasim_qgis/scripts/install_ribasim_qgis.py @@ -3,8 +3,10 @@ from enable_plugin import enable_plugin target_path = Path("ribasim_qgis").absolute() -source_path = Path(".pixi/qgis_env/profiles/default/python/plugins/ribasim_qgis") +plugins_path = Path(".pixi/qgis_env/profiles/default/python/plugins") +source_path = plugins_path / "ribasim_qgis" +plugins_path.mkdir(parents=True, exist_ok=True) source_path.unlink(missing_ok=True) source_path.symlink_to(target_path, target_is_directory=True)