mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
13 lines
477 B
Python
13 lines
477 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("\\", "\\\\") + "\""
|