make manual work in Windows
svn: r6433
This commit is contained in:
parent
faf6d52a06
commit
dff0fc3e95
@ -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>
|
||||
* src/GrampsDb/_GrampsBSDDB.py: handle data_map during
|
||||
reload of the database
|
||||
|
@ -25,16 +25,17 @@ def help(target):
|
||||
try:
|
||||
import gnome
|
||||
gnome.help_display('gramps-manual',target)
|
||||
except gobject.GError, msg:
|
||||
except:
|
||||
url('http://gramps-project.org/gramps-manual/gramps-manual-en/index.html')
|
||||
|
||||
def url(target):
|
||||
try:
|
||||
import gnome
|
||||
gnome.url_show(target)
|
||||
except gobject.GError, msg:
|
||||
except:
|
||||
run_browser(target)
|
||||
|
||||
|
||||
def run_browser(url):
|
||||
import os
|
||||
|
||||
@ -47,6 +48,11 @@ def run_browser(url):
|
||||
os.spawnvpe(os.P_NOWAIT, prog, [prog, url], os.environ)
|
||||
return
|
||||
|
||||
# If we did not find a browser in the path, try this
|
||||
try:
|
||||
os.startfile(url)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user