Bug report #21413

startup.py is not executed

Added by jachym - almost 4 years ago. Updated almost 4 years ago.

Assignee:Alessandro Pasotti
Category:PyQGIS Console
Affected QGIS version:3.7(master) Regression?:No
Operating System:Ubuntu Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:29230


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.


#1 Updated by Alessandro Pasotti almost 4 years ago

  • Assignee set to Alessandro Pasotti

#2 Updated by Alessandro Pasotti almost 4 years ago

  • Resolution set to invalid
  • Status changed from Open to Closed

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

QStandardPaths.standardLocations( QStandardPaths.AppDataLocation )

For example:

Also available in: Atom PDF