Subgroup: other

Class: QgsPathResolver

class qgis.core.QgsPathResolver

Bases: sip.wrapper

Resolves relative paths into absolute paths and vice versa. Used for writing

New in version 3.0: Methods

readPath Turn filename read from the project file to an absolute path
writePath Prepare a filename to save it to the project file.

Attributes

readPath(self, filename: str) → str

Turn filename read from the project file to an absolute path

writePath(self, filename: str) → str

Prepare a filename to save it to the project file. Creates an absolute or relative path according to the project settings. Paths written to the project file should be prepared with this method.