Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[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 08a8b60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/plugins/processing/tools/system.py
Expand Up @@ -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)

Expand Down

0 comments on commit 08a8b60

Please sign in to comment.