Skip to content

Commit

Permalink
Create a missing plugins folder for QGIS
Browse files Browse the repository at this point in the history
  • Loading branch information
deltamarnix committed Jan 24, 2024
1 parent 1e35eab commit 3243f8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ribasim_qgis/scripts/install_ribasim_qgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3243f8e

Please sign in to comment.