Skip to content

Commit afdbb21

Browse files
author
volayaf
committed
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
1 parent 0aff3b4 commit afdbb21

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

src/sextante/SextantePlugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ def openHelp(self):
122122
filename = os.path.dirname(__file__) + "/manual.pdf"
123123
if os.name == "nt":
124124
os.startfile(filename)
125+
elif sys.platform == "darwin":
126+
subprocess.call(('open', filename))
125127
else:
126128
subprocess.call(('xdg-open', filename))
127129

src/sextante/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ def name():
55
def description():
66
return "SEXTANTE Geoprocessing platform for QGIS"
77
def version():
8-
return "Version 1.0"
8+
return "Version 1.0.1"
99
def icon():
1010
return "icon.png"
1111
def qgisMinimumVersion():
1212
return "1.0"
1313
def classFactory(iface):
14-
# load SextantePlugin class from file SextantePlugin
1514
return SextantePlugin(iface)

src/sextante/core/SextanteUtils.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import time
3+
import sys
34

45
class SextanteUtils:
56

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

20+
@staticmethod
21+
def isMac():
22+
return sys.platform == "darwin"
23+
1924
@staticmethod
2025
def tempFolder():
2126
tempfolder = os.path.expanduser("~") + os.sep + "sextante" + os.sep + "tempdata"

src/sextante/grass/GrassAlgorithm.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,6 @@ def defineCharacteristicsFromFile(self):
5959
line = line.strip("\n").strip()
6060
if line.startswith("Parameter"):
6161
self.addParameter(ParameterFactory.getFromString(line))
62-
#===============================================================
63-
# elif line.startswith("Region"):
64-
# self.needsregion = True
65-
#===============================================================
6662
else:
6763
self.addOutput(OutputFactory.getFromString(line))
6864
line = lines.readline().strip("\n").strip()

src/sextante/manual.pdf

25.6 KB
Binary file not shown.

src/sextante/metadata.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[general]
99
name=SEXTANTE
1010
description=SEXTANTE for QGIS
11-
version=1.0
11+
version=1.0.1
1212
qgisMinimumVersion=1.0
1313
class_name=SextantePlugin
1414
website=www.sextantegis.com

src/sextanteexampleprovider/ExampleAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def processAlgorithm(self, progress):
5050
inputFilename = self.getParameterValue(self.INPUT_LAYER)
5151
output = self.getOutputValue(self.OUTPUT_LAYER)
5252

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

0 commit comments

Comments
 (0)