Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make setting "Grass7AlgorithProvider.activateSetting" optional.
This change makes it easier to subclass `Grass7AlgorithProvider` which allows e.g. to expose GRASS Addons as QGIS plugins. Disclaimer: `Grass7AlgorithProvider` is a private API and it may change without warning. 3rd parties that rely on this should expect that their code will break in future releases. For more info please check the comments at #30252 Nevertheless, it currently is possible to subclass with something like this: class CustomGrassBasedProvider(Grass7AlgorithmProvider): # Set descriptionFolder to our own description directory descriptionFolder = os.path.join(os.path.dirname(__file__), 'description') # 3rd party plugins don't need an activation/deactivation setting activateSetting = None # define the rest of the methods that are needed (e.g. name(), id() etc) # ... Fixes #30241 Continues #9202
- Loading branch information
Showing with 10 additions and 8 deletions.