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

startup.py is not executed #29230

Closed
qgib opened this issue Feb 27, 2019 · 2 comments
Closed

startup.py is not executed #29230

qgib opened this issue Feb 27, 2019 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! PyQGIS Related to the PyQGIS API

Comments

@qgib
Copy link
Contributor

qgib commented Feb 27, 2019

Author Name: jachym - (jachym -)
Original Redmine Issue: 21413
Affected QGIS version: 3.7(master)
Redmine category:pyqgis_console
Assignee: Alessandro Pasotti


According to documentation https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/intro.html#the-startup-py-file I've created startup file in ~/.local/share/QGIS/QGIS3/profiles/default/python/startup.py and made it executable.

When I start qgis, the file is not executed

When I explicitly export PYQGIS_STARTUP variable, everything works as expected.

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2019

Author Name: Alessandro Pasotti (@elpaso)


  • assigned_to_id was configured as Alessandro Pasotti

@qgib
Copy link
Contributor Author

qgib commented Feb 28, 2019

Author Name: Alessandro Pasotti (@elpaso)


Run this code from the console to know what are the path where you can place startup.py

QStandardPaths.standardLocations( QStandardPaths.AppDataLocation )

For example:
~/.local/share/QGIS/QGIS3/


  • resolution was changed from to invalid
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Feb 28, 2019
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! PyQGIS Related to the PyQGIS API labels May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! PyQGIS Related to the PyQGIS API
Projects
None yet
Development

No branches or pull requests

1 participant