Overview
| Artifact ID: | 3cbf7db297d865a44d374fa445430f25a057540b |
|---|---|
| Ticket: | 695441ffffffffffffffffffffffffffffffffff
tcl_findLibrary does not look in $::auto_path |
| User & Date: | jenglish on 2003-03-01 11:20:57 |
Changes
- icomment:
Logged In: YES user_id=68433 An example is probably in order: Suppose Foo 1.0 contains libFoo.so, fooInit.tcl, and pkgIndex.tcl, where pkgIndex.tcl says: package ifneeded Foo 1.0 [list load [file join $dir libFoo[info sharedlibextension]]] and Foo_Init() Tcl_Eval()s a startup script containing tcl_findLibrary Foo 1.0 1.0 fooInit.tcl FOO_LIBRARY Foo_Library If Foo1.0 is installed in one of the standard places (according to tcl_findLibrary), this will work. If it's stored in a nondefault location, [tclPkgUnknown] can find out about the package if $::auto_path is extended, but the package will still fail to load since tcl_findLibrary doesn't look in the same place(s) as [tclPkgUnknown]. Or is this an improper use of tcl_findLibrary?
- login: "jenglish"
- mimetype: "text/plain"
- subsystem changed to: "38. Init - Library - Autoload"
- username: "jenglish"