Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip the check of Processing Plugin when using PyQGIS in standalone scripts #528

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

pengxiang-liu
Copy link
Contributor

The current checking method with if 'processing' in qgis.utils.plugins always return False when QuickOSM is called in a standalone script because QGIS doesn't automatically load thest plugins without iface. However, the check can be skipped because the Processing Plugin can be directly imported by import processing and from processing.core.Processing import Processing even if it is disabled in QGIS Desktop App. This should fix #527.

Since qgis.utils.iface will not be None after opening the App, this change will not have any additional impact.

Copy link
Member

@Gustry Gustry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks

@Gustry Gustry merged commit 0d3e54e into 3liz:master Feb 28, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fail to call QuickOSM as a plugin from a Python standalone script
2 participants