Bug report #18502

QGIS 3 Processing API does not generate fully qualified paths for output filenames

Added by Andreas Rabe over 5 years ago. Updated about 5 years ago.

Assignee:Victor Olaya
Affected QGIS version:3.1(master) Regression?:No
Operating System: Easy fix?:Yes
Pull Request or Patch supplied:No Resolution:no timely feedback
Crashes QGIS or corrupts data:No Copied to github as #:26390


When using relative output filenames (e.g. for output raster layers) like 'output_raster.tif', the Processing Framework will not turn it into a fully qualified path.
Depending on the ProcessingAlgorithm, the result will be written to the current working directory, e.g. C:\OSGeo4W64_Py3\bin\output_raster.tif (not so nice!), or sometimes the algorithm crashes, because it assumes a full path.

Suggestion: use the QgsApplication::qgisSettingsDirPath() as the root directory, e.g. under Windows this is:


In my opinion, if ProcessingAlgorithms can always assume a full path, it makes development much easier and consistent.


#1 Updated by Alexander Bruy over 5 years ago

  • Operating System deleted (Windows)
  • Status changed from Open to Feedback

Should be fixed in latest master. Please check and report back.

#2 Updated by Jürgen Fischer about 5 years ago

  • Resolution set to no timely feedback
  • Status changed from Feedback to Closed

Also available in: Atom PDF