Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Commit

Permalink
Indicate that --code can be used to execute the script
Browse files Browse the repository at this point in the history
  • Loading branch information
Éric Lemoine committed Oct 28, 2019
1 parent 34f7b87 commit 61dd133
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ specified with the `PYQGIS_STARTUP` environment variable. For example:
$ PYQGIS_STARTUP=/home/user/pyqgis_startup.py qgis
```

It can also be specified through the `--code` switch:

```sh
$ qgis --code /home/user/pyqgis_startup.py
```

QGIS will execute that script at startup time, and when switching profiles. The script is
responsible for rewriting the user settings based on the constraints defined in the "user settings
contraints" file.
Expand Down

0 comments on commit 61dd133

Please sign in to comment.