From b76accefbda3410e0948619ac9bbfc79dd3ec4a2 Mon Sep 17 00:00:00 2001 From: Philippose Rajan Date: Sun, 5 Apr 2009 18:33:32 +0000 Subject: [PATCH] * Simpler external application loading * Library loading done in application TCL * ng.tcl only sources application TCL script file --- ng/ng.tcl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ng/ng.tcl b/ng/ng.tcl index e85da4b2..02029fe3 100644 --- a/ng/ng.tcl +++ b/ng/ng.tcl @@ -293,10 +293,8 @@ if { [catch { load libngsolve[info sharedlibextension] ngsolve } result ] } { } -if { [catch { load libdemoapp[info sharedlibextension] demoapp } result ] } { +if { [catch { source ${ngdir}/demoapp.tcl } result ] } { # puts "cannot load demoapp" # puts "error: $result" -} { - catch { source ${ngdir}/demoapp.tcl } }