[Vlad Glagolev] use sys.executable ti get python path. fixes #3463
This commit is contained in:
parent
98df9ffca2
commit
2623c75ca0
|
@ -22,6 +22,7 @@ import gtk
|
||||||
import pango
|
import pango
|
||||||
import gobject
|
import gobject
|
||||||
import os
|
import os
|
||||||
|
import sys
|
||||||
import time
|
import time
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
|
@ -845,9 +846,9 @@ class RosterWindow:
|
||||||
if os.path.exists('history_manager.exe'): # user is running stable
|
if os.path.exists('history_manager.exe'): # user is running stable
|
||||||
helpers.exec_command('history_manager.exe')
|
helpers.exec_command('history_manager.exe')
|
||||||
else: # user is running svn
|
else: # user is running svn
|
||||||
helpers.exec_command('python history_manager.py')
|
helpers.exec_command('%s history_manager.py' % (sys.executable,))
|
||||||
else: # Unix user
|
else: # Unix user
|
||||||
helpers.exec_command('python history_manager.py &')
|
helpers.exec_command('%s history_manager.py &' % (sys.executable,))
|
||||||
|
|
||||||
def get_and_connect_advanced_menuitem_menu(self, account):
|
def get_and_connect_advanced_menuitem_menu(self, account):
|
||||||
'''adds FOR ACCOUNT options'''
|
'''adds FOR ACCOUNT options'''
|
||||||
|
|
Loading…
Reference in New Issue