From 721cd86dbd152f5380ebf8cd7aa7065b2c28a497 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 30 Mar 2006 02:23:36 +0000 Subject: [PATCH] test of spawn svn: r6228 --- gramps2/src/DisplayTabs.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gramps2/src/DisplayTabs.py b/gramps2/src/DisplayTabs.py index 2615017d6..35b93f8c7 100644 --- a/gramps2/src/DisplayTabs.py +++ b/gramps2/src/DisplayTabs.py @@ -122,6 +122,7 @@ class GrampsTab(gtk.HBox): self.label_container = self.build_label_widget() # build the interface + self.share_btn = None self.build_interface() def is_empty(self): @@ -2003,5 +2004,9 @@ class BackRefModel(gtk.ListStore): yield True yield False +def launch(prog,path): + print prog, path + os.spawnvpe(os.P_NOWAIT, prog, [ prog, path], os.environ) + def make_launcher(prog, path): - return lambda x: os.spawnvpe(os.P_NOWAIT, prog, [ prog, path], os.environ) + return lambda x: launch(prog, path)