Skip to content

Update intro.rst: fix code for standard paths#11059

Open
agiudiceandrea wants to merge 1 commit into
qgis:masterfrom
agiudiceandrea:patch-16
Open

Update intro.rst: fix code for standard paths#11059
agiudiceandrea wants to merge 1 commit into
qgis:masterfrom
agiudiceandrea:patch-16

Conversation

@agiudiceandrea

Copy link
Copy Markdown
Member

Goal:

With PyQt6 (thus in QGIS 4) QStandardPaths.standardLocations(QStandardPaths.AppDataLocation) is not valid.

QStandardPaths.standardLocations(QStandardPaths.StandardLocation.AppDataLocation) should be used, instead.

Anyway, QStandardPaths.standardLocations(QStandardPaths.StandardLocation.AppDataLocation) could be used also with PyQt5 (thus in QGIS 3).

P.S. reading the paragraph about startup.py at https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/intro.html#the-startup-py-file, I'm not sure it is actually correct or enough clear: what is the meaning of "user’s Python home directory". Maybe @elpaso could give some suggestions to enhance the paragraph.

Ticket(s): #

  • Backport to LTR documentation is requested

@DelazJ

DelazJ commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

P.S. reading the paragraph about startup.py at https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/intro.html#the-startup-py-file, I'm not sure it is actually correct or enough clear: what is the meaning of "user’s Python home directory". Maybe @elpaso could give some suggestions to enhance the paragraph.

@elpaso may I? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants