move subprocess to the right place

This commit is contained in:
Chris Jones 2008-07-17 00:28:04 +01:00
parent 15ba71d766
commit 6e4e179aac
2 changed files with 3 additions and 2 deletions

View File

@ -18,7 +18,7 @@
"""Terminator by Chris Jones <cmsj@tenshu.net>""" """Terminator by Chris Jones <cmsj@tenshu.net>"""
# import standard python libs # import standard python libs
import os, sys, string, time, math, subprocess import os, sys, string, time, math
from optparse import OptionParser from optparse import OptionParser
#import version details #import version details

View File

@ -19,7 +19,7 @@
import pygtk import pygtk
pygtk.require ("2.0") pygtk.require ("2.0")
import gobject, gtk, pango import gobject, gtk, pango
import os, platform, sys import os, platform, sys, subprocess
#import version details #import version details
from terminatorlib.version import * from terminatorlib.version import *
@ -176,6 +176,7 @@ class TerminatorTerm (gtk.VBox):
def openurl (self, url): def openurl (self, url):
dbg ('openurl: viewing %s'%url) dbg ('openurl: viewing %s'%url)
try: try:
dbg ('openurl: calling xdg-open')
if subprocess.call(["xdg-open", url]) != 0: if subprocess.call(["xdg-open", url]) != 0:
dbg ('openurl: xdg-open failed') dbg ('openurl: xdg-open failed')
raise raise