Bug report #21413
startup.py is not executed
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
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 |
Description
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.
History
#1 Updated by Alessandro Pasotti over 5 years ago
- Assignee set to Alessandro Pasotti
#2 Updated by Alessandro Pasotti over 5 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:
~/.local/share/QGIS/QGIS3/