fix for opening urls if not installed to /usr

This commit is contained in:
Zach Tibbitts 2007-07-24 17:21:38 +00:00
parent 52635dfa59
commit 63c573aaa5

View File

@ -123,7 +123,7 @@ def open_url_in_browser(link):
else:
import os, sys
version = sys.version[:3]
file = '/usr/lib/python' + version + '/site-packages/deluge/browser.py'
file = INSTALL_PREFIX + '/lib/python' + version + '/site-packages/deluge/browser.py'
os.spawnlp(os.P_NOWAIT, 'python', 'python', file, link)
def is_url(url):