(history manager) do some basic stuff for our windows users. add a fixme to test it works and test further for when I sit on Windows

This commit is contained in:
Nikos Kouremenos 2006-03-21 14:47:11 +00:00
parent cba9b41d25
commit f1d4b2ceb4
1 changed files with 7 additions and 1 deletions

View File

@ -523,7 +523,13 @@ class RosterWindow:
pass #FIXME: impement disco in users for 0.9
def on_history_manager_menuitem_activate(self, widget):
os.system('python history_manager.py &')
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:
os.system('python history_manager.py &')
def get_and_connect_advanced_menuitem_menu(self, account):
xml = gtk.glade.XML(GTKGUI_GLADE, 'advanced_menuitem_menu', APP)