From 3243f8ef636369a0b91b12858fbe36f8b32283b4 Mon Sep 17 00:00:00 2001 From: Marnix Kraus Date: Wed, 24 Jan 2024 09:56:16 +0100 Subject: [PATCH] Create a missing plugins folder for QGIS --- ribasim_qgis/scripts/install_ribasim_qgis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)