Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: efc877cf3375b6469fc6b013baa1fd21eeabb655
Ticket: 695441ffffffffffffffffffffffffffffffffff
tcl_findLibrary does not look in $::auto_path
User & Date: jenglish on 2003-03-04 06:56:48
Changes

  1. icomment:
    Logged In: YES 
    user_id=68433
    
    Calling tcl_findLibrary from the package _Init() routine is
    useful since it works for statically loaded as well as
    dynamically loaded packages.  Plus, it provides useful hooks
    for overriding the library path from the environment (for
    e.g., debugging) and from the application (for e.g.,
    tclkits).
    
    BTW, I agree that the script and binary parts should always
    be installed in the same place.  However, for
    statically-linked, statically-loaded packages there might
    not be a separate binary part (or even a pkgIndex.tcl).
    
    Basically: if the binary part loads the script part, the
    package can work as a Tcl_StaticPackage() or be dynamically
    loaded with no code changes.  The other way around, it
    can't.
    
    
  2. login: "jenglish"
  3. mimetype: "text/plain"
  4. username: "jenglish"