svn users can run history manager now [if they have pywin32]

This commit is contained in:
Nikos Kouremenos 2006-03-27 13:40:51 +00:00
parent 20de72093a
commit a541c5f426
1 changed files with 8 additions and 5 deletions

View File

@ -565,11 +565,14 @@ class RosterWindow:
def on_history_manager_menuitem_activate(self, widget): def on_history_manager_menuitem_activate(self, widget):
if os.name == 'nt': # FIXME: test it actually works.. if os.name == 'nt': # FIXME: test it actually works..
try: if os.path.exists('history_manager.exe'): # he's running stable
os.startfile('history_manager.exe') # if pywin32 is installed we open os.system('history_manager.exe')
except: # FIXME: fallback (for windows svn users) to py else: # he is svn user
pass try:
else: 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 &') os.system('python history_manager.py &')
def get_and_connect_advanced_menuitem_menu(self, account): def get_and_connect_advanced_menuitem_menu(self, account):