Skip to content
Permalink
Browse files
added check for macOS when opening help manual
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@62 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed Apr 3, 2012
1 parent 0aff3b4 commit afdbb218a9c73715b800381614bc6769e9a5e2a7
@@ -122,6 +122,8 @@ def openHelp(self):
filename = os.path.dirname(__file__) + "/manual.pdf"
if os.name == "nt":
os.startfile(filename)
elif sys.platform == "darwin":
subprocess.call(('open', filename))
else:
subprocess.call(('xdg-open', filename))

@@ -5,11 +5,10 @@ def name():
def description():
return "SEXTANTE Geoprocessing platform for QGIS"
def version():
return "Version 1.0"
return "Version 1.0.1"
def icon():
return "icon.png"
def qgisMinimumVersion():
return "1.0"
def classFactory(iface):
# load SextantePlugin class from file SextantePlugin
return SextantePlugin(iface)
@@ -1,5 +1,6 @@
import os
import time
import sys

class SextanteUtils:

@@ -16,6 +17,10 @@ def userFolder():
def isWindows():
return os.name =="nt"

@staticmethod
def isMac():
return sys.platform == "darwin"

@staticmethod
def tempFolder():
tempfolder = os.path.expanduser("~") + os.sep + "sextante" + os.sep + "tempdata"
@@ -59,10 +59,6 @@ def defineCharacteristicsFromFile(self):
line = line.strip("\n").strip()
if line.startswith("Parameter"):
self.addParameter(ParameterFactory.getFromString(line))
#===============================================================
# elif line.startswith("Region"):
# self.needsregion = True
#===============================================================
else:
self.addOutput(OutputFactory.getFromString(line))
line = lines.readline().strip("\n").strip()
BIN +25.6 KB (100%) src/sextante/manual.pdf
Binary file not shown.
@@ -8,7 +8,7 @@
[general]
name=SEXTANTE
description=SEXTANTE for QGIS
version=1.0
version=1.0.1
qgisMinimumVersion=1.0
class_name=SextantePlugin
website=www.sextantegis.com
@@ -50,7 +50,7 @@ def processAlgorithm(self, progress):
inputFilename = self.getParameterValue(self.INPUT_LAYER)
output = self.getOutputValue(self.OUTPUT_LAYER)

#input layers vales are always a string whit its location.
#input layers values are always a string with its location.
#That string can be converted into a QGIS object (a QgsVectorLayer in this case))
#using the Sextante.getObject() method
vectorLayer = Sextante.getObject(inputFilename)

0 comments on commit afdbb21

Please sign in to comment.