svn users can run history manager now [if they have pywin32]
This commit is contained in:
parent
20de72093a
commit
a541c5f426
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue