make manual work in Windows

svn: r6433
This commit is contained in:
Brian Matherly 2006-04-25 04:10:32 +00:00
parent d8628f28ee
commit 798207dbb4
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,6 @@
2006-04-24 Brian Matherly <pez4brian@users.sourceforge.net>
* src/GrampsDisplay.py: make manual work in Windows
2006-04-24 Don Allingham <don@gramps-project.org> 2006-04-24 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_GrampsBSDDB.py: handle data_map during * src/GrampsDb/_GrampsBSDDB.py: handle data_map during
reload of the database reload of the database

View File

@ -25,15 +25,16 @@ def help(target):
try: try:
import gnome import gnome
gnome.help_display('gramps-manual',target) gnome.help_display('gramps-manual',target)
except gobject.GError, msg: except:
url('http://gramps-project.org/gramps-manual/gramps-manual-en/index.html') url('http://gramps-project.org/gramps-manual/gramps-manual-en/index.html')
def url(target): def url(target):
try: try:
import gnome import gnome
gnome.url_show(target) gnome.url_show(target)
except gobject.GError, msg: except:
run_browser(target) run_browser(target)
def run_browser(url): def run_browser(url):
import os import os
@ -46,7 +47,12 @@ def run_browser(url):
if os.path.isfile(prog): if os.path.isfile(prog):
os.spawnvpe(os.P_NOWAIT, prog, [prog, url], os.environ) os.spawnvpe(os.P_NOWAIT, prog, [prog, url], os.environ)
return return
# If we did not find a browser in the path, try this
try:
os.startfile(url)
except:
pass