Re: [Xotcl] "Cannot locate library"
Created by hypermail2xowiki importer, last modified by Stefan Sobernig 02 Jan 2017, at 11:15 PM
Date: Tue, 13 May 2003 12:22:35 +0200
On Tuesday 13 May 2003 11:49, Gustaf Neumann wrote:
>
> > and use the local directory
> > when you are in it so that you don't necessarily have to install.
>
> as stated in my last mail. extending the autopath or tcllibpath
> should solve this.
>
and that (extending the autopath) is exactly what the method
check_library_path essentially does. I think we can get rid
of the part:
foreach d $::auto_path {
set xl xotcl$::xotcl::version
foreach x [list [file join $d $xl] [file join $d .. $xl]] {
#puts stderr "check $x"
if {[file isdirectory $x]} {
set ::xotcl::lib $x
set success 1
break
}
}
if {[info exists success]} {break}
}
if we don't want the xotcl::lib variable ... the rest (except the ENV part) is
needed somewhere, i think. I guess, if we code these things into the pkgindex
files we would need a different version for the Win and unix installation.
> there is code in the xotcl package "package" to determine
> the name of the library directory. an application needing this
> info can use this approach...
I'm not sure, which method do you mean in package.xotcl??
--uwe
-- Uwe Zdun Department of Information Systems, Vienna University of Economics Phone: +43 1 313 36 4796, Fax: +43 1 313 36 746 zdun_at_{xotcl,computer,acm}.org, uwe.zdun_at_wu-wien.ac.at