Navigation Menu

Skip to content

Commit

Permalink
added check for macOS when opening help manual
Browse files Browse the repository at this point in the history
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 afdbb21
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/sextante/SextantePlugin.py
Expand Up @@ -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))

Expand Down
3 changes: 1 addition & 2 deletions src/sextante/__init__.py
Expand Up @@ -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)
5 changes: 5 additions & 0 deletions src/sextante/core/SextanteUtils.py
@@ -1,5 +1,6 @@
import os
import time
import sys

class SextanteUtils:

Expand All @@ -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"
Expand Down
4 changes: 0 additions & 4 deletions src/sextante/grass/GrassAlgorithm.py
Expand Up @@ -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()
Expand Down
Binary file modified src/sextante/manual.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion src/sextante/metadata.txt
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/sextanteexampleprovider/ExampleAlgorithm.py
Expand Up @@ -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)
Expand Down

0 comments on commit afdbb21

Please sign in to comment.