source: trunk/src/tcl/library/init.tcl.in @ 204

Last change on this file since 204 was 204, checked in by dkearney, 18 years ago

initial version of tcl's rappture bindings.
read README for compile instructions.
still needs testing, example fxn calls in tcl_test.tcl

File size: 1.3 KB
Line 
1# ----------------------------------------------------------------------
2#  RapptureGUI - scripts and C extensions required for Rappture GUI
3# ----------------------------------------------------------------------
4#  This file initializes the package when it is loaded by "package
5#  require".  It loads the dynamic library and sets up autoloading
6#  for other scripts.
7# ======================================================================
8#  AUTHOR:  Michael McLennan, Purdue University
9#  Copyright (c) 2004-2006  Purdue Research Foundation
10#
11#  See the file "license.terms" for information on usage and
12#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
13# ======================================================================
14proc RapptureGUI_init {} {
15    global auto_path
16    global rappture_library
17
18    package require BLT
19
20    set dir [file dirname [info script]]
21   
22    set rappture_library [file join $dir scripts]
23    lappend auto_path $rappture_library
24
25    set suffix [info sharedlibextension]
26    set library [file join $dir .. libRapptureGUI@VERSION@${suffix}]
27    load $library RapptureGUI
28
29    namespace eval Rappture {
30        variable version @EXACT_VERSION@
31        variable patchlevel @PATCHLEVEL@
32    }
33
34    package provide RapptureGUI @VERSION@
35    rename RapptureGUI_init ""   
36}
37RapptureGUI_init
Note: See TracBrowser for help on using the repository browser.