Skip to content

Commit 8459fa2

Browse files
committed
temporarily switch back to using subprocess module (addresses #6543)
1 parent acb0a9e commit 8459fa2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

python/plugins/sextante/gui/SextanteToolbox.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import os
2727
import sys
28+
import subprocess
2829

2930
from PyQt4.QtCore import *
3031
from PyQt4.QtGui import *
@@ -85,7 +86,14 @@ def setupUi(self):
8586
QMetaObject.connectSlotsByName(self)
8687

8788
def configureProviders(self):
88-
QDesktopServices.openUrl(QUrl(os.path.join(os.path.dirname(__file__), os.path.pardir) + "/help/3rdParty.html"))
89+
#QDesktopServices.openUrl(QUrl(os.path.join(os.path.dirname(__file__), os.path.pardir) + "/help/3rdParty.html"))
90+
filename = os.path.join(os.path.dirname(__file__), "..", "help", "3rdParty.html")
91+
if os.name == "nt":
92+
os.startfile(filename)
93+
elif sys.platform == "darwin":
94+
subprocess.Popen(('open', filename))
95+
else:
96+
subprocess.call(('xdg-open', filename))
8997

9098
def showPopupMenu(self,point):
9199
item = self.algorithmTree.itemAt(point)

0 commit comments

Comments
 (0)