-
Notifications
You must be signed in to change notification settings - Fork 6
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
use startup.py instead of --code
option
#1
Comments
I need to confirm on my test machine but custom-osgeo4w-qgis/qgis-custom/apps/qgis-custom/qgis_constrained_settings.py Lines 97 to 98 in 3c26b18
-if __name__ == "__main__":
+if __name__ == "startup":
main() I ran these 3 lines in QGIS python console and I add > spec = importlib.util.spec_from_file_location('startup','C:/Users/Nicolas Godet/AppData/Roaming/QGIS/QGIS3/startup.py')
> module = importlib.util.module_from_spec(spec)
> spec.loader.exec_module(module)
startup So |
@nicogodet thanks for raising this. I have no windows machine to test this by now but this makes sense. Tell me when you confirm this on your test machine. Any PR welcome :) |
@haubourg I confirm it should be as described in my previous message. I will prepare a PR. |
See e4650cd |
This is much leaner and the way the documentation recommends it.
Let's dig why it didn't work at start in my setup :)
The text was updated successfully, but these errors were encountered: