From a541c5f42637eafa6c206ad7e0e4a56271a71f16 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Mon, 27 Mar 2006 13:40:51 +0000 Subject: [PATCH] svn users can run history manager now [if they have pywin32] --- src/roster_window.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index d754bea21..f40783e53 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -565,11 +565,14 @@ class RosterWindow: def on_history_manager_menuitem_activate(self, widget): if os.name == 'nt': # FIXME: test it actually works.. - try: - os.startfile('history_manager.exe') # if pywin32 is installed we open - except: # FIXME: fallback (for windows svn users) to py - pass - else: + if os.path.exists('history_manager.exe'): # he's running stable + os.system('history_manager.exe') + else: # he is svn user + try: + os.startfile('history_manager.py') + except: # user doesn't have pywin32, too bad for him + pass + else: # Unix user os.system('python history_manager.py &') def get_and_connect_advanced_menuitem_menu(self, account):