add amissing else

This commit is contained in:
Nikos Kouremenos 2005-08-11 12:36:32 +00:00
parent d0c81a9b8f
commit 2cb711b720
1 changed files with 15 additions and 14 deletions

View File

@ -221,6 +221,7 @@ def launch_file_manager(path_to_open):
os.startfile(path_to_open) # if pywin32 is installed we open
except:
pass
else:
if gajim.config.get('openwith') == 'gnome-open':
command = 'gnome-open'
elif gajim.config.get('openwith') == 'kfmclient exec':
@ -230,7 +231,7 @@ def launch_file_manager(path_to_open):
if command == '': # if no app is configured
return
# we add the path in "" so we have good parsing from shell
command = command + ' "' + uri + '" &'
command = command + ' "' + path_to_open + '" &'
try: #FIXME: when we require python2.4+ use subprocess module
os.system(command)
except: