use helpers method. tested it in Windows (svn) and Linux
This commit is contained in:
parent
5ac4a0d86c
commit
fa4080f784
|
@ -656,14 +656,11 @@ class RosterWindow:
|
|||
def on_history_manager_menuitem_activate(self, widget):
|
||||
if os.name == 'nt':
|
||||
if os.path.exists('history_manager.exe'): # user is running stable
|
||||
os.startfile('history_manager.exe')
|
||||
helpers.exec_command('history_manager.exe')
|
||||
else: # user is running svn
|
||||
try:
|
||||
os.startfile('history_manager.py')
|
||||
except: # user doesn't have pywin32, too bad for him
|
||||
pass
|
||||
helpers.exec_command('python history_manager.py')
|
||||
else: # Unix user
|
||||
os.system('python history_manager.py &')
|
||||
helpers.exec_command('python history_manager.py &')
|
||||
|
||||
def get_and_connect_advanced_menuitem_menu(self, account):
|
||||
'''adds FOR ACCOUNT options'''
|
||||
|
|
Loading…
Reference in New Issue