Skip to content

Commit

Permalink
temporarily switch back to using subprocess module (addresses #6543)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Oct 25, 2012
1 parent acb0a9e commit 8459fa2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion python/plugins/sextante/gui/SextanteToolbox.py
Expand Up @@ -25,6 +25,7 @@

import os
import sys
import subprocess

from PyQt4.QtCore import *
from PyQt4.QtGui import *
Expand Down Expand Up @@ -85,7 +86,14 @@ def setupUi(self):
QMetaObject.connectSlotsByName(self)

def configureProviders(self):
QDesktopServices.openUrl(QUrl(os.path.join(os.path.dirname(__file__), os.path.pardir) + "/help/3rdParty.html"))
#QDesktopServices.openUrl(QUrl(os.path.join(os.path.dirname(__file__), os.path.pardir) + "/help/3rdParty.html"))
filename = os.path.join(os.path.dirname(__file__), "..", "help", "3rdParty.html")
if os.name == "nt":
os.startfile(filename)
elif sys.platform == "darwin":
subprocess.Popen(('open', filename))
else:
subprocess.call(('xdg-open', filename))

def showPopupMenu(self,point):
item = self.algorithmTree.itemAt(point)
Expand Down

0 comments on commit 8459fa2

Please sign in to comment.