mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-09 00:35:20 -05:00
13 lines
465 B
Python
13 lines
465 B
Python
from sextante.parameters.Parameter import Parameter
|
|
from sextante.core.SextanteUtils import SextanteUtils
|
|
|
|
class ParameterDataObject(Parameter):
|
|
|
|
def getValueAsCommandLineParameter(self):
|
|
if self.value == None:
|
|
return str(None)
|
|
else:
|
|
if not SextanteUtils.isWindows():
|
|
return "\"" + unicode(self.value) + "\""
|
|
else:
|
|
return "\"" + unicode(self.value).replace("\\", "\\\\") + "\"" |