Skip to content
Permalink
Browse files

[processing] modified how user folder is defined

This should have no effect on a normal QGIS desktop installation, but improve using Processing when not running on top of a regular QGIS instance.
  • Loading branch information
volaya committed Dec 15, 2015
1 parent 85eebff commit 08a8b6095f09ffc88b8bf034470b1c5a3cab3486
Showing with 2 additions and 4 deletions.
  1. +2 −4 python/plugins/processing/tools/system.py
@@ -38,17 +38,15 @@


def userFolder():
userDir = QFileInfo(QgsApplication.qgisUserDbFilePath()).path() \
+ '/processing'
userDir = os.path.join(QgsApplication.qgisSettingsDirPath(), 'processing')
if not QDir(userDir).exists():
QDir().mkpath(userDir)

return unicode(QDir.toNativeSeparators(userDir))


def defaultOutputFolder():
folder = os.path.join(os.path.dirname(QgsApplication.qgisUserDbFilePath()),
"processing", "outputs")
folder = os.path.join(userFolder(), "outputs")
if not QDir(folder).exists():
QDir().mkpath(folder)

0 comments on commit 08a8b60

Please sign in to comment.
You can’t perform that action at this time.