source: trunk/src/tcl/init.tcl.in @ 232

Last change on this file since 232 was 207, checked in by dkearney, 19 years ago

reorganized tcl directory

File size: 1.3 KB
Line 
1# ----------------------------------------------------------------------
2#  RapptureLibrary - Tcl extensions to C++ core Rappture Library
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:  Derrick Kearney, Purdue University
9#  Copyright (c) 2005-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 Rappture_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 .. libRappture@VERSION@${suffix}]
27    load $library
28
29    namespace eval Rappture {
30        variable version @EXACT_VERSION@
31        variable patchlevel @PATCHLEVEL@
32    }
33
34    package provide Rappture @VERSION@
35    rename Rappture_init ""
36}
37Rappture_init
Note: See TracBrowser for help on using the repository browser.