Re: Packages and Expect
- From: Uwe Klein <uwe_klein_habertwedt@xxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 14:52:57 +0200
Larry W. Virden wrote:
On Apr 29, 10:35 pm, "Tom Conner" <tcon...@xxxxxxxxxx> wrote:Hmm:
Is there any way to "package require expect" so that I don't have to worry
about the path to the .so file?
Figuring out what kind of case that the developer used for an
extension is one of the challenges of the community. I tend to do
this:
$ tclsh
% package require Tryit
can't find package Tryit
% package require tryit
can't find package tryit
% package require TryIt
can't find package TryIt
% ^D
$ cd /path/where/I/Installed/tryit
$ less pkgIndex.tcl
and then I look to see if I can figure out what name is being used.
The ones that always get me are bwidgets (which for some reason is
BWidget) and tclx (which is Tclx, but which has the man page of TclX).
package require givdatnich
set whatwehave [ package names ]
set whatithinkiwant expect
set found [ lsearch -inline -regexp $whatwehave ***:(?i)$whatithinkiwant ]
puts stderr "required: $whatithinkiwant found : $found"
if {$found != {} } {
package require $found
} else {
puts stderr bahh
}
uwe
.
- Follow-Ups:
- Re: Packages and Expect
- From: Donal K. Fellows
- Re: Packages and Expect
- References:
- Packages and Expect
- From: Tom Conner
- Re: Packages and Expect
- From: Larry W. Virden
- Packages and Expect
- Prev by Date: Re: Tcl UDP Server memory leak.
- Next by Date: Re: Can TK be iSexy?
- Previous by thread: Re: Packages and Expect
- Next by thread: Re: Packages and Expect
- Index(es):
Relevant Pages
|