Skip to main content
100%

Gist af8be0815f3cb3a6676169571dd84de2

✓ Published0🌍 Public
TThomasG77
Last edited May 19, 2025
Created on May 19, 2025

This example shows a Python script that patches a QGIS plugin file to remove a field from a search dialog’s attribute list. It reads the plugin’s `search_dialog.py` file, replaces the string containing `'comptecommunal'` with a version that omits that field, and writes the modified file back. The script uses standard Python file I/O operations and string replacement via `file.read`, `str.replace`, and `file.write`, targeting the Cadastre plugin’s dialog configuration within the user’s profile directory.

AI-generated description

Similar vizzes