Skip to content
Permalink
Browse files
[processing] minor fixes related to settings
  • Loading branch information
volaya committed May 10, 2014
1 parent 9aff0d7 commit b1570fb20ae7a7ef345409c47d8f2cbf165720d8
@@ -232,7 +232,7 @@ def runPreExecutionScript(self, progress):
self.runHookScript(scriptFile, progress)

def runHookScript(self, filename, progress):
if not os.path.exists(filename):
if filename is None or not os.path.exists(filename):
return
try:
script = 'import processing\n'
@@ -26,7 +26,7 @@
__revision__ = '$Format:%H$'

import os.path
from PyQt4 import QtGui
from PyQt4 import QtGui,QtCore
from processing.tools.system import *


@@ -150,7 +150,10 @@ def readSettings():
@staticmethod
def getSetting(name):
if name in ProcessingConfig.settings.keys():
return ProcessingConfig.settings[name].value
v = ProcessingConfig.settings[name].value
if isinstance(v, QtCore.QPyNullVariant):
v = None
return v
else:
return None

0 comments on commit b1570fb

Please sign in to comment.