make manual work in Windows
svn: r6433
This commit is contained in:
parent
d8628f28ee
commit
798207dbb4
@ -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
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user